Showing posts with label database name. Show all posts
Showing posts with label database name. Show all posts

Wednesday, June 10, 2015

script: How to find logical and physical file names of the database

SELECT DB_NAME(database_id) AS DatabaseName, name AS LogicalFileName, physical_name AS PhysicalFileName
FROM sys.master_files AS mf