对 SQL Server 2008 的日志文件进行截断

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

ALTER DATABASE @DBName SET RECOVERY SIMPLE WITH NO_WAIT
DBCC SHRINKFILE(@DBName_log, 1)
ALTER DATABASE @DBName SET RECOVERY FULL WITH NO_WAIT
GO