Use Master Go sp_configure 'allow updates', 1 reconfigure with override Go begin tran update sysdatabases set status = 32768 where db_name' -- Verify one row is updated before committing commit tran
2.5步驟5: 停止SQL然后重新啟動SQL Server 服務,然后運行如下命令: DBCC TRACEON (3604) DBCC REBUILD_LOG('db_name','c:\mssql7\data\dbxxx_3.LDF') Go 2.6步驟6: 停止SQL然后重新啟動SQL Server 服務,然后運行:
復制代碼 代碼如下:
use master update sysdatabases set status = 8 where Go sp_configure 'allow updates', 0 reconfigure with override Go