x
login about faq Site discussion (meta-askssc)

Incorrect SET options during UPDATE STATISTICS

At the time of apply UPDATE STATISTICS on production Database (Sql server 2000)it give some error i.e.UPDATE STATISTICS failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER, ARITHABORT'.

[Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 1934: [Microsoft][ODBC SQL Server Driver][SQL Server]UPDATE STATISTICS failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER, ARITHABORT'.

more ▼

asked Oct 28 '09 at 01:41 AM in Default

user-289 gravatar image

user-289
21 1 1 2

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

At the top of your script, set them to the correct values and then set them back at the end of your script.

I assume you are doing this in a script?

SET QUOTED_IDENTIFIER ON            
SET ARITHABORT ON            
            
...Your Script...            
            
SET QUOTED_IDENTIFIER OFF            
SET ARITHABORT OFF            
more ▼

answered Oct 28 '09 at 08:30 AM

RickD gravatar image

RickD
1.6k 1 1 4

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x454

asked: Oct 28 '09 at 01:41 AM

Seen: 592 times

Last Updated: Oct 29 '09 at 10:19 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.