时间:2021-07-01 10:21:17 帮助过:3人阅读
--减小数据库Log文件大小 1MB 为自定义大小
USE [master]
GO
ALTER DATABASE DataBaeName SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE DataBaeName SET RECOVERY SIMPLE
GO
USE DataBaeName
GO
DBCC SHRINKFILE (N‘DataBaeName_log‘ , 1, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE DataBaeName SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE DataBaeName SET RECOVERY FULL
GO
减小数据库Log文件大小 1MB 为自定义大小
标签:database with run truncate ase over tab use 定义