0% found this document useful (0 votes)
68 views2 pages

SQL Restore Error: WITH MOVE Clause Fix

The document summarizes an issue where SQL restore fails with an error message stating that the WITH MOVE clause can be used to relocate files. It occurs when the same location and name is specified for two files during a Copy-Restore. The resolution is to provide different locations for each database file in the relocation path.

Uploaded by

Josue
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views2 pages

SQL Restore Error: WITH MOVE Clause Fix

The document summarizes an issue where SQL restore fails with an error message stating that the WITH MOVE clause can be used to relocate files. It occurs when the same location and name is specified for two files during a Copy-Restore. The resolution is to provide different locations for each database file in the relocation path.

Uploaded by

Josue
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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 [Link] GMT 2016

Summary:

Version: 2 Article Type: Break Fix Audience: Level 30 = Customers Last Published: Sat Feb 20 [Link] GMT 2016

Summary:
Issue:

Notes:
Symptoms

SQL restore fails with the following errors:

1) nsrsqlrc -s [Link] -c [Link] -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 [Link] 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) [Link](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.

[Link]

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 [Link] GMT 2016

Channels: First Published: Fri Feb 05 [Link] GMT 2016

Originally Created By: SFDC Admin Last Modified: Sat Feb 20 [Link] GMT 2016

You might also like