23
11月
2014
Thinkers压缩数据库
USE Thinkers ; GO ALTER DATABASE Thinkers SET RECOVERY SIMPLE;--设置简单恢复模式 GO DBCC SHRINKFILE (Crm_Data_Log, 1); GO ALTER DATABASE Thinkers SET RECOVERY FULL;--恢复为原模式 GO =================== DBCC SHRINKDATABASE('Thinkers') DBCC shrinkfile(2,0) DBCC UPDATEUSAGE (0)
BK
USE Thinkers ; GO Alter DATABASE Thinkers SET RECOVERY SIMPLE;--设置简单恢复模式 GO DBCC SHRINKFILE (Crm_Data_Log, 1); GO Alter DATABASE Thinkers SET RECOVERY FULL;--恢复为原模式 GO =================== DBCC SHRINKDATABASE('Thinkers') DBCC shrinkfile(2,0) DBCC UpdateUSAGE (0)