清理sql日志
declare @dbName varchar(100);
set @dbName='DatabaseName';--数据库名
backup log @dbName with NO_LOG;
backup log @dbName with TRUNCATE_ONLY;
DBCC SHRINKDATABASE(@dbName);
set @dbName='DatabaseName';--数据库名
backup log @dbName with NO_LOG;
backup log @dbName with TRUNCATE_ONLY;
DBCC SHRINKDATABASE(@dbName);