-
-
Save amtwo/855698b1b51634d02f8de498586642b3 to your computer and use it in GitHub Desktop.
This file contains 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
--Parse backup files | |
SELECT fp.* | |
FROM msdb.dbo.backupmediafamily bmf | |
CROSS APPLY DBA.dbo.ParseFilePath(bmf.physical_device_name) fp; | |
--Parse database data files | |
SELECT fp.* | |
FROM sys.master_files mf | |
CROSS APPLY DBA.dbo.ParseFilePath(mf.physical_name) fp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment