1
2
3
4
5
6
7
8
9
|
ALTER DATABASE DataBaseName SET RECOVERY SIMPLE WITH NO_WAIT
ALTER DATABASE DataBaseName SET RECOVERY SIMPLE --简单模式
DBCC SHRINKFILE (N'DataBaseName_log' , 11, TRUNCATEONLY) -- 11是大小 11M
ALTER DATABASE DataBaseName SET RECOVERY FULL WITH NO_WAIT
ALTER DATABASE DataBaseName SET RECOVERY FULL --还原为完全模式
|