Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 settings: 'ARITHABORT'

Author  Topic 

djokerss
Starting Member

28 Posts

Posted - 2004-10-28 : 04:46:28
when i want to insert data into table there was an error

Server: Msg 1934, Level 16, State 1, Line 1
INSERT failed because the following SET options have incorrect settings: 'ARITHABORT'.


i've try to change set arithabort on and off
but it's error still occured.

please help me....my transaction stoped because of that...
thanks before

harshal_in
Aged Yak Warrior

633 Posts

Posted - 2004-10-28 : 05:31:37
r u executing the insert through QA?
check this link [url]http://support.microsoft.com/kb/305333[/url]

He is a fool for five minutes who asks ,
but who does not ask remains a fool for life!

http://www.sqldude.4t.com
http://www.sqljunkies.com/weblog/sqldude
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2004-10-28 : 09:52:38
The thing that called the current thing, rather than just the current thing, often has to have SET ARITHABORT ON to solve this.

For example I have used something like:

CREATE PROCEDURE MyWrapperSP
AS
SET ARITHABORT ON
EXEC MyRealSP
GO

to get around the problem. Also when executing dynamic SQL from ASP:

SET ARITHABORT ON; SELECT * FROM MyTable

can cure the problem (but often it needs a wrapper SProc too)

Kristen
Go to Top of Page
   

- Advertisement -