3. Select the Database in which the database going to restore.
Select in scripting: Create a move template
Untick the use replace Options
Select Recovered recovery option
Save and click Restore.
Save *.bch file (give file related to database)
Step:4
HP Restricted
4. Edit the template only in Blocked.
--------------------
#
# This is a template for the database MOVE command.
#
OPERATION RESTORE
OBJECTTYPE DATABASE
RESTORETYPE MOVE
#
# Replace the database name in the following line with the name of the database that you
# want to move to. Also remove the hash mark <#> which precedes the keyword
<DATABASE>.
#
DATABASE "wss-us-gsm_july8" (Rename the database name)
#
# Replace the file path <I:MSSQLDATAwss-us-gsm.mdf>
# with a new file path. Also remove the hash mark <#> which precedes the keyword
<TO>.
# The target of the MOVE keyword must be "wss-us-gsm".
MOVE "wss-us-gsm"
TO "I:restoredwss-us-gsm_july8.mdf" (redirected the path)
#
#
HP Restricted
5. # Replace the file path <I:MSSQLDATAwss-us-gsm_log.LDF>
# with a new file path. Also remove the hash mark <#> which precedes the keyword
<TO>.
# The target of the MOVE keyword must be "wss-us-gsm_log".
MOVE "wss-us-gsm_log"
TO "I:restoredwss-us-gsm_july8_log.LDF" (redirected the path)
#
# The following image is type: Full
NBIMAGE "USMITRY-DB24.MSSQL7.USMITRY-DB24.db.wss-us-gsm.~.
7.001of001.20070708040124..C"
SQLHOST "USMITRY-DB24"
NBSERVER "USMITRY-NB01"
BROWSECLIENT "USMITRY-DB24"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RECOVEREDSTATE RECOVERED
ENDOPER TRUE
After the Edit the template
Go to manage Script files and start the script which u saved.
HP Restricted
6. Then go to Active monitor of the master server and monitor the restoration.
HP Restricted
7. Then go to Active monitor of the master server and monitor the restoration.
HP Restricted