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