Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 426 Bytes

find-database-files.md

File metadata and controls

15 lines (11 loc) · 426 Bytes

Find Database Files

To easily find the location of database files, run the following query against the SQL server.

USE master;
SELECT 
  name 'Logical Name', 
  physical_name 'File Location'
FROM sys.master_files;

The result will be a list of databases and their corresponding file location.

Found on Database.Guide