[英]how to find out log size of each of the database in sql server 2005?
Duplicate of: How to find out size of the individual databases in the sql server 2005? 重复项: 如何找出sql server 2005中各个数据库的大小?
how to find out log size of each of the database in sql server 2005? 如何找出SQL Server 2005中每个数据库的日志大小?
In SQL management studio , goto object explorer, right click database, goto "properties" , select "Files" . 在SQL Management Studio中,转到对象浏览器,右键单击数据库,转到“属性”,然后选择“文件”。 These you can see one "Initial size" column which will be the size of your DB.
这些您可以看到一个“初始大小”列,该列将是数据库的大小。 you will get both Data and Log file size over here.
您将在此处获得数据和日志文件的大小。
您可以使用以下SQL:
EXECUTE sp_msforeachdb 'SELECT *, GETDATE() FROM [?].sys.database_files'
try this 尝试这个
dbcc sqlperf(logspace)
Bye. 再见
How to determine SQL Server database transaction log usage 如何确定SQL Server数据库事务日志的使用情况
try this : 尝试这个 :
DBCC SQLPERF(logspace)
如果您有权利...
SELECT SIZE/128.0, * FROM sys.master_files MF WHERE MF.type = 1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.