-- 减小数据库Log文件大小 1MB 为自定义大小
-- 减小数据库Log文件大小 1MB 为自定义大小 USE [master] GO ALTER DATABASE DataBaseName SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE DataBaseName SET RECOVERY SIMPLE GO USE DataBaseName GO DBCC SHRINKFILE (N'DataBaseName_log' , 1, TRUNCATEONLY) GO USE [master] GO ALTER DATABASE DataBaseName SET RECOVERY FULL WITH NO_WAIT GO ALTER DATABASE DataBaseName SET RECOVERY FULL GO