Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 7696

Error restoring SQL 2000 db to SQL 2008 - The WITH MOVE clause can be used to relocate one or more files. (Microsoft.SqlServer.Smo)

$
0
0

Hi,

While trying to restore a SQL 2000 db into SQL 2008, I get this error:

------------------------------

Restore failed for Server 'S2B22347'.  (Microsoft.SqlServer.SmoExtended)

ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: File 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Build51_Testing_db.mdf' is claimed by 'CCHRI_UAT_Tran'(3) and 'CCHRI_UAT_Data'(1). The WITH MOVE clause can be used to relocate one or more files. (Microsoft.SqlServer.Smo)

------------------------------

The script looks something like this:

RESTORE

 

DATABASE [Build51_Testing_db] FROMDISK=N'C:\Shival\Build51_Testing_db_bkp'WITHFILE= 1,MOVEN'CCHRI_UAT_Data'TON'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Build51_Testing_db.mdf',MOVEN'CCHRI_UAT_Tran'TON'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Build51_Testing_db.mdf',MOVEN'CCHRI_UAT_Index'TON'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Build51_Testing_db.mdf',MOVEN'CCHRI_UAT_Log'TON'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Build51_Testing_db.LDF',MOVEN'CCHRI_UAT_Log1'TON'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Build51_Testing_db.LDF',NOUNLOAD,REPLACE,STATS= 10

GO

Please help me resolve this.

Shival


Viewing all articles
Browse latest Browse all 7696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>