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 databases
  • select * sys.databases shows lot of information each database - unfortunately doesn't show files used each database.
  • select * sys.database_files shows mdf/ldf files of master 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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -