在这里记录下SQL Server收缩Log文件的执行语句,以tempdb数据库为例。 --截断事务日志 backup log tempdb with no_log go --收缩数据库 dbcc shrinkdatabase (tempdb) go