简体   繁体   中英

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?

how to find out log size of each of the database in sql server 2005?

In SQL management studio , goto object explorer, right click database, goto "properties" , select "Files" . 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.

如果您有权利...

SELECT SIZE/128.0, * FROM sys.master_files MF WHERE MF.type = 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM