You are on page 1of 2

Restricted View

Knowledge Base Article: 000412173


SQL restore fails with error The WITH MOVE clause can be used to relocate one or more files."
(000412173)
Primary Product :
Product : NetWorker Module for Microsoft SQL Server 5.2 SP2

Version: 2 Article Type: Break Fix Audience: Level 30 = Customers Last Published: Sat Feb 20 19:10:49 GMT 2016

Summary:

Version: 2 Article Type: Break Fix Audience: Level 30 = Customers Last Published: Sat Feb 20 19:10:49 GMT 2016

Summary:
Issue:

Notes:
Symptoms

SQL restore fails with the following errors:

1) nsrsqlrc -s 10.3.5.15 -c abc.xyz.com -d MSSQL: -I -


2) SQL Connection to ABC is created. SQL Server Version is 10.00.1600
3) Command line -I item: -d "MSSQL:MYDB"
4) Command line -I item: -C " 'MYDB_3_Data'='F:\MYDB\MYDB_MYDB3_Data_21148'
5) Command line -I item: 'MYDB_4_Data'='F:\MYDB\MYDB_MYDB_4_Data_21148.NDF'
6) Command line -I item: 'MYDB_Data'='F:\MYDB\MYDB_MYDB_Data_21148.MDF'
7) Command line -I item: 'MYDB_Log'='D:\MYDB\MYDB_MYDB_Log_21148.LDF'
8) Command line -I item: 'MYDB_Log1'='D:\MYDB\MYDB_MYDB_Log1_Log_21148.LDF'
9) Command line -I item: 'MYDB_Log2'='D:\MYDB\MYDB_MYDB_Log2_Log_21148.LDF'
10) Command line -I item: 'MyDB_Log3'='D:\MYDB\MYDB_MyDB_Log_21148.LDF'
11) Command line -I item: 'MYDB1_Data'='F:\MYDB\MYDB_MYDB1_Data_21148.NDF'
12) Command line -I item: 'MYDB2_Data'='F:\MYDB\MYDB_MYDB2_Data_21148.NDF'"
13) Command line -I item: -t "Sat Dec 24 03:57:37 2011" "MSSQL:MYDB"
14) Recovering database 'MYDB' into 'MYDB' ...
15) bsGetOrigLFiles: directory object name is MSSQL:/MYDB%/files.1324695457.1324695464
16) bsGetOpaqueList: returns success.
17) RESTORE database [MYDB] FROM virtual_device='Legato#4d8a4506-abd0-459a-a9de-cdab3e38816a' WITH
move 'MYDB_3_Data' to 'F:\MYDB\MYDB_MYDB3_Data_21148', move 'MYDB_4_Data' to
'F:\MYDB\MYDB_MYDB_4_Data_21148.NDF', move 'MYDB_Data' to 'F:\MYDB\MYDB_MYDB_Data_21148.MDF',
move 'MYDB_Log' to 'D:\MYDB\MYDB_MYDB_Log_21148.LDF', move 'MYDB_Log1' to
'D:\MYDB\MYDB_MYDB_Log1_Log_21148.LDF', move 'MYDB_Log2' to
'D:\MYDB\MYDB_MYDB_Log2_Log_21148.LDF', move 'MyDB_Log3' to 'D:\MYDB\MYDB_MyDB_Log_21148.LDF',
move 'MYDB1_Dat
18) Microsoft SQL Server Provider error:
19) File 'D:\MYDB\MYDB_MyDB_Log_21148.LDF' is claimed by 'MyDB_Log3'(9) and 'MYDB_Log'(2). The WITH MOVE
clause can be used to relocate one or more files..
20) RESTORE DATABASE is terminating abnormally..
21) nsrsqlado.cpp(2358): ExecuteFailed event arrived.
22) Error processing SQL database 'MYDB'.

Cause

While doing a Copy-Restore, the same location and name was specified for two files.

Resolution

Provide different location in relocation path for each file of database.


Refer to Microsoft article below for more information.

http://msdn.microsoft.com/en-us/library/bb326318%28v=sql.90%29.aspx

Product: NetWorker Module for Microsoft SQL Server 5.2 SP2

Problem Code: Corrective Maintenance

Article Properties: Validation Status: Approved Original Create Date: Sat Feb 20 10:10:29 GMT 2016

Channels: First Published: Fri Feb 05 19:37:58 GMT 2016

Originally Created By: SFDC Admin Last Modified: Sat Feb 20 19:10:49 GMT 2016

You might also like