Querying SQB file
chenchen300
Posts: 12 Bronze 1
Dear friends,
I would like to build a dynamic restore scripts. The problem is i can't know the original File Groups within the new created SQB file.
I can see the SQL Backup gui doe's it, i guess maybe it uses the catalog repository. Anyway, i assume i do not have this repository and neither the backed up sql database.
My question is: how can i know what File Groups are contained within my SQB file , in order to script their new locations?
I would like to build a dynamic restore scripts. The problem is i can't know the original File Groups within the new created SQB file.
I can see the SQL Backup gui doe's it, i guess maybe it uses the catalog repository. Anyway, i assume i do not have this repository and neither the backed up sql database.
My question is: how can i know what File Groups are contained within my SQB file , in order to script their new locations?
Comments
If you're fine with moving all data files to the same folder, and all log files to the same folder, you can use the DATAFILES and LOGFILES shortcuts e.g.
In this way, you don't need to know the actual filegroup names.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8