标签:sqlserver
USE [master]
GO
ALTER DATABASE DbName SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE DbName SET RECOVERY SIMPLE --简单模式
GO
USE cp2yfx
GO
DBCC SHRINKFILE (N‘DbName_log‘ , 11, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE DbName SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE DbName SET RECOVERY FULL --还原为完全模式
GO
标签:sqlserver
原文地址:http://hezun.blog.51cto.com/1137078/1702028