December 27, 2014

MS SQL 2005 : To Check the size of the Database

Use the Below Query to Check the Database Size with all *.mdf & log.*ldf file sizes

****QUERY****

SELECT DB_NAME(database_id) AS DatabaseName,
Name AS Logical_Name,
Physical_Name, (size*8)/1024 SizeMB
FROM sys.master_files
WHERE DB_NAME(database_id) = 'Database_Name'
Size of DB - shyamb4u

No comments:

Post a Comment