USE <数据库名>;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE <数据库名>
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (<数据库名>_Log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE <数据库名>
SET RECOVERY FULL;
GO
清除Sql Server日志
最新推荐文章于 2025-03-17 08:00:00 发布