长时间的使用数据库的日志文件会越来越大。dump transaction 数据库名称 with no_log backup log 数据库名称 with no_log dbcc shrinkdatabase(数据库名称) 注意该命令只能在2005的版本上使用。