用T-SQL 简单压缩 SQL Server 数据库 DUMP TRANSACTION DBName WITH NO_LOG BACKUP LOG DBName WITH NO_LOG DBCC SHRINKDATABASE(DBName ) EXEC sp_dboption 'DBName','autoshrink','TRUE'