Find largest MS SQL databases

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

Leave a Reply

Your email address will not be published. Required fields are marked *