微软SQL server 2005 数据库清理日志SQL命令方法
2019-06-23 19:30:52

长时间的使用数据库的日志文件会越来越大。
dump transaction 数据库名称 with no_log 

backup log 数据库名称 with no_log 
dbcc shrinkdatabase(数据库名称) 

注意该命令只能在2005的版本上使用。

image.png