Previous Topic: Keep Replication Settings OptionNext Topic: Restore Databases Using Restore by Tree Method


Database File Options

Using the Database File options, you can:

You can move the files to a different location on disk either individually or using Move Rules. Move Rules can be applied to an entire database, individual FileGroup or Transaction Log, or to an individual file. You can specify rules to move files to a particular drive, directory path, or rename the file, all independently of each other. If you want to rename files at the Database or FileGroup level, you can specify a filename change using a wildcard pattern.

To change database file locations

  1. On the Agent Restore Options dialog, select the Database File Options tab.

  2. In the navigation tree, select one of the following options to apply the change:
  3. Under Restore Database Files As, select one of the following options, as appropriate:
    Restore to Original Location

    Available at the Database level. Clears any changes to the drive letters, paths, and file names. You must still click the Apply button after selecting this option for the change to take effect.

    Restore to Original Location, Except

    Available at the Database, FileGroup and Transaction Log, and File levels. Applies the requested changes to the drive letter, paths and file names based on the location of the file when the backup was performed.

    Inherit Move Rules, Except

    Available at the FileGroup and Transaction Log, and File levels. Applies the requested changes to the drive letter, paths and file names based on the changes which have already been made.

  4. In the box labeled Database Move Rules, FileGroup Move Rules, or File Move Rules, select one or more of the following options:
  5. Click the Apply button.

    The changes are applied to the tree.

    Note: If you make a different selection or close the Agent Restore Options dialog without applying the changes, the selections you made will be lost.

    If the rules you specify result in two files being given the same physical location on disk, a red indicator appears at the bottom of the dialog, and in the tree next to both the affected files and the object where the rule was applied.

  6. Repeat steps 2 through 5 for each change you need to make.

    Note: If you are using a wildcard pattern to rename files, and the pattern for the original filenames does not match with one or more of the files to which it would be applied, a yellow indicator will appear at the bottom of the dialog, and in the tree next to both the affected files and the object where the rule was applied.