Created
July 7, 2016 11:15
-
-
Save theuntitled/214b88058673c9f80c5a14ca784f66e7 to your computer and use it in GitHub Desktop.
Get all logical database file names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT DB_NAME(database_id) AS DatabaseName, name AS LogicalFileName, physical_name AS PhysicalFileName | |
| FROM sys.master_files AS mf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment