时间:2021-07-01 10:21:17 帮助过:4人阅读
USE [master] GO ALTER DATABASE TestDB SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE TestDB SET RECOVERY SIMPLE --简单模式 GO --select * from sys.database_files USE [TestDB] GO DBCC SHRINKFILE (N‘TestDB_log‘ , 1, TRUNCATEONLY) GO USE [master] GO ALTER DATABASE TestDB SET RECOVERY FULL WITH NO_WAIT GO ALTER DATABASE TestDB SET RECOVERY FULL --还原为完全模式 GO
sql server 压缩日志文件
标签:select alter over truncate arp log 模式 pre 文件