Listing information about all database files in SQL Server -
is possible list information files (mdf/ldf) of databases on sql server?
i'd list showing database using files on local disk.
what tried:
exec sp_databases
databasesselect * sys.databases
shows lot of information each database - unfortunately doesn't show files used each database.select * sys.database_files
shows mdf/ldf files ofmaster
database - not other databases
you can use sys.master_files.
contains row per file of database stored in master database. single, system-wide view.
Comments
Post a Comment