Wednesday, 23 March 2022

How to check DB file Names

SELECT
    db.name AS DBName,
    type_desc AS FileType,
    Physical_Name AS Location
FROM
    sys.master_files mf
INNER JOIN 
    sys.databases db ON db.database_id = mf.database_id

No comments:

Post a Comment

Common Data Service (CDS)

 Common Data Service (CDS)