You can relocate a child database to a different target database when copying the entire parent database and its children.
- Add the selection="all" attribute to the database element for the parent.
- Specify the parent database name.
- Add the selection="included" attribute to the database element for the child database.
- Specify the child database name, as well as the target_database element and the target database name.
In the following example, the parent database MySourceDB is copied to MySourceDB, but the child database MyChildDB is copied to the database MyTargetDB.
<database selection="all"> <name>MySourceDB</name> <database selection="included"> <name>MyChildDB</name> <target_database> <name>MyTargetDB</name> </target_database> </database> </database>