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
原文地址:https://www.cnblogs.com/lgx5/p/11619382.html
时间: 2024-10-13 21:29:47