Wednesday, February 27, 2013

Find size of MDF and LDF file of all Databases

SELECT DB_NAME(database_id) AS DatabaseName,
Name AS Logical_Name,
Physical_Name, (size*8)/1024 SizeMB
FROM sys.master_files


This will give you size of MDF and LDF  in MB

Thanks

1 comment:

  1. Thank You very much!!! It contains a lot of useful information.

    ReplyDelete

https://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context...