SQL SERVER 收缩数据库语句

ALTER DATABASE ST1_FLD SET RECOVERY SIMPLE --将“恢复模式”设置为“简单”
GO
USE ST1_FLD
GO
DBCC SHRINKFILE (N'ST1_FLD_log' , 1, TRUNCATEONLY)--收缩日志文件大小到1M
GO
USE ST1_FLD
GO
ALTER DATABASE ST1_FLD SET RECOVERY FULL WITH NO_WAIT ----将“恢复模式”设置为“完整”
GO
ALTER DATABASE ST1_FLD SET RECOVERY FULL

上一篇:leetcode:剑指 Offer 09. 用两个栈实现队列(简单,)


下一篇:C#计算时间差