111,126
社区成员
发帖
与我相关
我的任务
分享
--压缩数据文件
declare @i int
set @i=(select top 1 fileid from sysfiles where name='学生管理系统数据文件')
print @i
DBCC SHRINKFILE(@i)
--DBCC SHRINKFILE ( {file_name | file_id } [, target_size][, {EMPTYFILE | NOTRUNCATE | TRUNCATEONLY} ] )