Sql Server2014数据库清理日志
USE[master]
GO
ALTER DATABASE RYAccountsDB SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE RYAccountsDB SET RECOVERY SIMPLE --简单模式
GO
USE RYAccountsDB
GO
DBCC SHRINKFILE (N'RYAccountsDB_log' , 11, TRUNCATEONLY)
GO
USE[master]
GO
ALTER DATABASE RYAccountsDB SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE RYAccountsDB SET RECOVERY FULL --还原为完全模式
GO