Click here to Skip to main content
15,890,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello professionals

i am getting this error when i am inserting data throw xml in sql server database 2008

INSERT failed because the following SET options have incorrect settings: 'ARITHABORT'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.


how can i solve it any idea......??
tried many on Google got many answer on stack overflow ......but not succeed so help if u all can.....
Posted
Comments
[no name] 16-Sep-13 9:32am    
http://social.technet.microsoft.com/Forums/sqlserver/en-US/d24f7e32-4632-484c-8c58-c194837fbd71/insert-failed-because-the-following-set-options-have-incorrect-settings-arithabort
coded007 17-Sep-13 0:29am    
Can you post query so that we can help you more.....
Shubh Agrahari 17-Sep-13 1:11am    
query in the sense i am doing just xml data insert operation throw Procedure from VS 2005 to Sql Server 2008 and i am getting this when i am posting value via parameter but when i am inserting the same value throw SQL IDE text visualizer it inserting successfully.....

1 solution

Your table might have an index which got created with the option

SQL
SET ARITHABORT OFF


If this is the case recreate it arithabort turned on.

Please check http://technet.microsoft.com/en-us/library/ms190306.aspx[^] for further details
 
Share this answer
 
Comments
RedDk 17-Sep-13 13:00pm    
This won't necessarily work. The examples in the BOL seem to be bogus so even going by that ...
Saral S Stalin 18-Sep-13 3:52am    
I had faced similar problem in the past, and it was due set of indexes which got created with wrong settings.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900