1>; sp_helpdb sybsystemdb
2>; go
name db_size owner dbid
created
status
------------------------ ------------- ------------------------ ------
--------------
-----------------------------------------------------------------------
-------------------------------
sybsystemdb 2047.0 MB sa 31513
Aug 24, 2006
no options set
(1 row affected)
device_fragments size usage
created free kbytes
------------------------------ ------------- --------------------
------------------- ------------------------------
master 4.0 MB data and log
Aug 24 2006 3:35PM 1500
systemdbdev 2043.0 MB data and log
Aug 24 2006 3:40PM 2083860
(return status = 0)作者: chmod 时间: 2006-08-26 19:12
这样可以么?
use master
go
sp_configure 'allow updates',1
go
reconfigure with override
go
delete sysusages from sysusages,sysdevices
where vstart=sysdevices.low and sysdevices.name='systemdbdev'
go
sp_configure 'allow updates',0
go
reconfigure with override
go
sp_dropdevice systemdbdev
go作者: chmod 时间: 2006-08-26 19:49
还是这样做好呢?
1> select dbid,lstart,vstart,size from sysusages where dbid=db_id('sybsystemdb')
use master
go
sp_configure 'allow updates',1
go
begin transaction
go
update sysusages set segmap=7 where dbid=db_id('sybsystemdb') and lstart=1024
go
delete sysusages where dbid=db_id('sybsystemdb') and lstart!=1024
go
commit transaction
go
sp_configure 'allow updates',0
go
checkpoint
go
重新启动