sqlserver清理temlog
DBCC SHRINKFILE (N'templog', 256);
USE lqtest
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE lqtest
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (JSTW_Log);
GO
-- Reset the database recovery model.
ALTER DATABASE lqtest
SET RECOVERY FULL;
GO