运行查询分析器,执行以下SQL语句:
use tempdb
select * from tempdb.dbo.sysfiles
dump transaction tempdb with no_log
dbcc shrinkfile ('templog',1)
select * from tempdb.dbo.sysfiles
运行查询分析器,执行以下SQL语句:
use tempdb
select * from tempdb.dbo.sysfiles
dump transaction tempdb with no_log
dbcc shrinkfile ('templog',1)
select * from tempdb.dbo.sysfiles
转载于:https://www.cnblogs.com/tomorrow8/archive/2009/06/19/1506420.html