SSMS如何获取事务日志的使用情况?
当您右键单击数据库、报告...磁盘使用情况时,我会收到一份报告。因为我的权限有限,所以我只能看到顶部部分,其中显示“事务日志空间使用情况”——仅该数字就对我有用。
但是,后来我收到有关无权运行 DBCC showfilestats 的错误消息,并且我也绝对无权访问 sys.dm_os_performance_counters 或 DBCC SQLPERF('logspace')。
如果我能得到那个最高的数字,那就很有用了。不幸的是,我当然无法运行探查器,所以我不知道它发出什么命令或查询来获取该数据......
When you right-click on database, Reports...Disk Usage, I get a report. Because I have limited permissions, I only get the top portion, which shows "Transaction Log Space Usage" - that number alone could be useful to me.
However, later I get error messages about not having permissions to run DBCC showfilestats, and I also definitely don't have access to sys.dm_os_performance_counters or DBCC SQLPERF('logspace').
If I can just get that top number, that would be useful. Unfortunately, I cannot run the profiler, of course, so I have no idea what command or query it's issuing to even get that data...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己的 SSMS 磁盘使用情况报告的探查器捕获显示
DBCC SQLPERF(LOGSPACE)
:Profiler capture of my own SSMS Disk Usage report shows
DBCC SQLPERF(LOGSPACE)
: