Andrew Calvett
February 2006 - Posts
2005 - Alter failed for server XXX
13 February 2006 18:04
Thats exactly what i thought!! What the hell does that mean?
Well, for me this occured in the context of running the maintenance plan integrity check task. It had been running fine for weeks but suddenly boom every time it ran it would fail with "Alter failed for server XXX".
There was no obvious reason for this error so i had to dig out profiler to see what was going on. It turns out that one of the first statements executed by the plan is "sp_configure 'User Options',xxxx" followed by "RECONFIGURE". The reconfigure statement was then generating an error which caused my problem. But why was it generating an error? That was because a script had been run on the server that changed the "Allow Updates" value from 0 to 1. Changing the value back to 0 resolved the problem.
BOL states that changing the Allow Updates option has no effect since you can't update system tables in 2005 but it clearly does have an effect since the behaviour of reconfigure changes.
Theres a few points to be taken from this.
1) There actually is no
benefit
to changing "Allow Updates" so make sure you remove it from your scripts, i have.
2) Why was the "sp_configure 'User Options', xxxx" followed by "RECONFIGURE" being executed anyway? Its not relevant to integrity checks and why is it updating server wide settings? I noted the setting was simply set to what it already was, fortunately.
3) Bear this little gotcha in mind because who knows where you will first meet the problem and what message will you get?
Go
This Blog
Home
Contact
Links
Tags
64 Bit
Analysis Services
Database Engine
Deadlock
Just for fun
Maintenance Plans
Performance
Ramblings
Reports
Security
SQL 2000
SQL 2005
SSAS 2005
SSMS
System Procedures
Tips
Tools
Navigation
Home
Blogs
Forums
Photos
Downloads
Archives
August 2008 (1)
May 2008 (1)
April 2008 (1)
February 2008 (1)
January 2008 (1)
December 2007 (1)
October 2007 (1)
September 2007 (1)
July 2007 (3)
June 2007 (2)
June 2006 (1)
April 2006 (1)
March 2006 (2)
February 2006 (1)
January 2006 (3)
Syndication
RSS
Atom
Comments RSS