Display Data and Log File Paths for Microsoft SQL Server Instance

Find all the data and log file paths for all databases on Microsoft SQL Server instance.

SELECT name, physical_name AS current_file_location FROM sys.master_files

Leave a Reply

Your email address will not be published. Required fields are marked *