询问者
2012版本数据库的,如何收缩事务日志

问题
全部回复
-
王发你好,
你在收缩日志的时候遇到什么错误了? 可以把错误内容分享一下吧,你把错误提示的详细信息点开,把里面的内容发出来,造成收缩日志失败的原因有很多,涉及到权限,空间等等原因,需要错误信息分析。
最简单有效的就是@zjcxc.邹建给出的方法,你也可以参考一下以下步骤:
- 执行一下下面这个Query,看看空间够不够。
dbcc SQLperf(logspace)
- 执行一下下面的Query,看看有没有active transaction。
DBCC OPENTRAN
If you have any other questions, please let me know.
Best Regards,
Teige
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
- 已编辑 Teige GaoModerator 2016年12月26日 9:31