SQL解决代码方法
use tempdb
select * from tempdb.dbo.sysfiles
dump
transaction tempdb with no_log
dbcc shrinkfile ('templog',1)
select
* from tempdb.dbo.sysfiles
本文提供了一套使用SQL语句来操作tempdb的方法,包括查看文件、卸载事务及收缩日志等步骤,有助于理解并掌握tempdb维护技巧。
SQL解决代码方法
use tempdb
select * from tempdb.dbo.sysfiles
dump
transaction tempdb with no_log
dbcc shrinkfile ('templog',1)
select
* from tempdb.dbo.sysfiles
2750

被折叠的 条评论
为什么被折叠?
