SQL语句压缩数据库和Log --压缩数据库文件 DUMP transaction Database with no_log --压缩数据库,参数0代表当前数据库 DBCC SHRINKDATABASE (0);