Snippets

Craig Phillips List the largest databases on a SQL Server instance

Created by Craig Phillips
1
2
3
4
5
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

Comments (0)