收缩数据库
程序员文章站
2024-04-05 23:54:43
...
SQL Server收缩数据库 无 USE masterGOIF EXISTS(SELECT name FROM sys.databases WHERE name=N'Test')DBCC SHRINKDATABASE(N'Test')GO
SQL Server收缩数据库USE master GO IF EXISTS(SELECT name FROM sys.databases WHERE name=N'Test') DBCC SHRINKDATABASE(N'Test') GO