- 论坛徽章:
- 0
|
如何避免数据库备置为“suspect”状态?
用ISQL登录到SQL Server,须用SA帐号
1>;sp_configure "allow updates", 1
2>;go
2>;reconfigure with override
2>;go
1>;update master..sysdatabases
2>;set status =-32768
3>;Where name="database_name" database_name是 你 的 数 据 库 名
4>;go
1>;shutdown with nowait
2>;go
这时重新启动SQL Server,再有SA帐号注册到SQL Server。
1>;update master..sysdatabases
2>;set status=0
3>;Where name="database_name" database_name 是 你 的 数 据 库 名
4>;go
1>;sp_configure "allow updates" ,1
2>;go
1>;reconfigure with override
2>;go
如果你的数据库原来有dboption,你需要重新设置这些option。 |
|