压缩LDF档

--压缩LDF档
USE VoucherServer;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE VoucherServer
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (VoucherServer_Log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE VoucherServer
SET RECOVERY FULL;
GO
上一篇:python自动化运维之CMDB篇-大米哥


下一篇:黑马MySQL数据库学习day02 表数据CRUD 约束CRUD