This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- mssql 2000 | |
SELECT db_name(dbid), * | |
FROM master.dbo.sysaltfiles | |
ORDER BY size DESC | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- mssql 2005 and above (untested) | |
SELECT db_name(database_id) database_name, * | |
FROM sys.master_files | |