【SQL】(啟用/關閉)系統資料目錄的特定更新

在SQL Server 2000中,欲修改系統資料目錄內容時,通常預設不允許被更新的,此時會出現『系統資料目錄的特定更新並未啟用。系統管理員必須重新組態SQL Server來啟用它。』錯誤。
必須透過下面語法啟用功能:

啟用系統資料目錄的特定更新語法:
sp_configure 'allow updates','1'
reconfigure with override
go

關閉系統資料目錄的特定更新語法:
sp_configure 'allow updates','0'
reconfigure with override
go


SQL Server 2000為例:
欲變更tmpresdb之建立日期



select * from sysobjects where name='tmpresdb'



步驟:



變更後:




留言

這個網誌中的熱門文章

【ASP】日期轉換(西元<-->民國)

【VB】使用NPOI元件來匯出Excel--DataTableToExcel

【SQL】符號切割字串變成多欄