Jan 3
goexec sp_databases
go Need to find out where the files are on disk?SELECT [name] [Database], [filename] [File Path]
FROM master..sysdatabases
Get the List of All Databases and Sizes in Sql Server
How many times has your database servers hard drives filled up and you want to find the culprit? Probably not many but for me it happens all the time. Here is a simple command to get a list of all sql server databases and their file size:use mastergoexec sp_databases
go Need to find out where the files are on disk?SELECT [name] [Database], [filename] [File Path]
FROM master..sysdatabases
