如何在SQL 2008中查找已使用的事务和总日志文件.ldf大小 [英] How to find transaction used and total log file .ldf size in SQL 2008
本文介绍了如何在SQL 2008中查找已使用的事务和总日志文件.ldf大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从SQL 2008中查找.ldf文件的大小.
我在以下查询中使用过-
I want to find size of .ldf file from SQL 2008.
I have used below queries -
SELECT size*8192
FROM sysfiles
-- and --
select * from sysfiles
但是,对于查询返回的大小,我并不清楚.
甚至还不及我从文件系统获得的大小.
谢谢,
Neal.
But, I am not get clarity regarding size returned by query.
Even, its not closer to the size I am getting from filesystem.
Thanks,
Neal.
推荐答案
也许这篇文章对您有所帮助-
Maybe this post can be of some assistance to you - http://searchsqlserver.techtarget.com/tip/Check-SQL-Server-database-and-log-file-size-with-this-stored-procedure
这篇关于如何在SQL 2008中查找已使用的事务和总日志文件.ldf大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文