收缩数据库

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

USE master
GO
IF EXISTS(SELECT name FROM sys.databases WHERE name=N'Test')
DBCC SHRINKDATABASE(N'Test')
GO