sqlserver 2008收缩数据库日志
发布时间:2020-12-12 13:56:31 所属栏目:MsSql教程 来源:网络整理
导读:USE 数据库名; GO -- Truncate the log by changing the database recovery model to SIMPLE. ALTER DATABASE 数据库名 SET RECOVERY SIMPLE; GO -- Shrink the truncated log file to 1 MB. DBCC SHRINKFILE (数据库名_Log,1); GO -- Reset the database re
USE 数据库名; GO -- Truncate the log by changing the database recovery model to SIMPLE. ALTER DATABASE 数据库名 SET RECOVERY SIMPLE; GO -- Shrink the truncated log file to 1 MB. DBCC SHRINKFILE (数据库名_Log,1); GO -- Reset the database recovery model. ALTER DATABASE 数据库名 SET RECOVERY FULL; GO
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |