SQL Server 2012 清理日志 截断日志的方法
MEDIA数据库名ALTER DATABASE MEDIA SET RECOVERY SIMPLE WITH NO_WAIT
ALTER DATABASE MEDIA SET RECOVERY SIMPLE --简单模式
DBCC SHRINKFILE (N'MEDIA_Log' , 11, TRUNCATEONLY) -- 11是大小11M
ALTER DATABASE MEDIA SET RECOVERY FULL WITH NO_WAIT
ALTER DATABASE MEDIA SET RECOVERY FULL--还原为完全模式
转:http://blog.csdn.net/hehe520347/article/details/48497229
页:
[1]