1.数据库ruccps被挂起
解决方法:
1)
启动Backup Server, 后备master数据库(这一步很重要!)
1>dump database master to "//sybase/master.dup"
2>go
2)
由于需要修改系统表的值,所以必须先将SQL Server的“allow updates”属性设为可修改。
$isql –Usa -P
1>sp_configure "allow updates", 1
2>go
1>begin tran
2>go
1>use master
2>go
1>update sysdatabases set status = -32768 Where name="ruccps"
2>go
如果得到(1 row affected),则
1>commit
2>go
否则
1>rollback
2>go
(4)重新启动SQL Server.
3)
截断数据库log
1>use ruccps
2>go
1>dump tran 数据库名 with no_log
2>go
4)
用sa帐号注册到SQL Server.
1>begin tran
2>go
1>use master
2>go
1>update sysdatabases set status=0 Where name="ruccps"
2>go
如果得到(1 row affected),则
1>commit
2>go
1>sp_configure "allow updates" ,0
2>go
5)
重新启动SQL Server.