日期:2014-05-18 浏览次数:20689 次
--截断事务日志 backup log jdan_erp with no_log go --收缩数据库 dbcc shrinkdatabase(jdan_erp) go ------------------------ USE jdan_erp; GO -- Truncate the log by changing the database recovery model to SIMPLE. ALTER DATABASE jdan_erp SET RECOVERY SIMPLE; GO -- Shrink the truncated log file to 1 MB. DBCC SHRINKFILE (jdan_erp_Log, 1); GO -- Reset the database recovery model. ALTER DATABASE jdan_erp SET RECOVERY FULL; GO
BACKUP LOG DBNAME WITH NO_LOG