MS SQL Server日志清空方法

1.清空日志:DUMP TRANSACTION databasename WITH NO_LOG

2.截断事务日志:BACKUP LOG databasename WITH NO_LOG

3.收缩数据库:DBCC SHRINKDATABASE(databasename)

DUMP TRANSACTION databasename WITH NO_LOG
BACKUP LOG databasename WITH NO_LOG
DBCC SHRINKDATABASE(databasename)

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据