码迷,mamicode.com
首页 > 数据库 > 详细

收缩数据库命令

时间:2019-12-12 16:44:06      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:style   dbcc   weight   cat   sim   数据   over   database   only   

一、收缩数据库日志命令:
USE
[master] GO ALTER DATABASE CoCo_sum SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE CoCo_sum SET RECOVERY SIMPLE GO USE CoCo_sum GO DBCC SHRINKFILE (NCoCo_sum_log , 11, TRUNCATEONLY) GO USE [master] GO ALTER DATABASE CoCo_sum SET RECOVERY FULL WITH NO_WAIT GO ALTER DATABASE CoCo_sum SET RECOVERY FULL GO ALTER DATABASE CoCo_Mid SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE CoCo_Mid SET RECOVERY SIMPLE GO USE CoCo_Mid GO DBCC SHRINKFILE (NCoCo_Mid_log , 11, TRUNCATEONLY) GO USE [master] GO ALTER DATABASE CoCo_Mid SET RECOVERY FULL WITH NO_WAIT GO ALTER DATABASE CoCo_Mid SET RECOVERY FULL GO

 

收缩数据库命令

标签:style   dbcc   weight   cat   sim   数据   over   database   only   

原文地址:https://www.cnblogs.com/leigei-it/p/12029952.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!