--如果"allow updates"選項被設置為"1",那么你在使用語句:
EXEC sp_configure 'show advanced options', 1 ;
GO
RECONFIGURE ;
--沒有加上WITH OVERRIDE,就會出現提示的錯誤
GO
--所以,如果你要解決問題,有兩個方法:
sp_configure 'allow updates', 0 ;
--設置為0
GO
RECONFIGURE WITH OVERRIDE ;
GO
--或者在你運行下面個代碼的時候:
EXEC sp_configure 'show advanced options', 1 ;
GO
RECONFIGURE WITH OVERRIDE ;
--加上WITH OVERRIDE
GO
--你可以運行下面代碼重現錯誤:
--Code Snippet
sp_configure 'allow updates', 1 ;
GO
RECONFIGURE WITH OVERRIDE ;
GO
EXEC sp_configure 'show advanced options', 1 ;
GO
RECONFIGURE ;
GO