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然后重新啟動(dòng)SQL Server 服務(wù),然后運(yùn)行如下命令: DBCC TRACEON (3604) DBCC REBUILD_LOG('db_name','c:/mssql7/data/dbxxx_3.LDF') Go 2.6步驟6: 停止SQL然后重新啟動(dòng)SQL Server 服務(wù),然后運(yùn)行:
復(fù)制代碼 代碼如下:
use master update sysdatabases set status = 8 where Go sp_configure 'allow updates', 0 reconfigure with override Go