Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Can't Restore Database to New Server
Hi

I am attempting to transfer a database from my server to my customers
server. I took the backup file on CD however when I try to do a restore with
it I get the following error

Microsoft SQL-DMO (ODBC SQLState:42000)
Device activation error:The physical file name
 'd:\sqldata\mssql\da
ta\sa.mdf' may be incorrect.
File 'SA-V1_dat' cannot be restored to  'd:\sqlData\MSSQL\da
ta\sa.mdf'. Use
WITH MOVE to identify a valid location for the file.
Device activation error. The physical file name
 'd:\sqlData\MSSQL\da
ta\sa_log.ldf' may be incorrect.
File 'SA-V1_log' cannot be restored to  'd:\sqlData\MSSQL\da
ta\sa_log.ldf'.
Use WITH MOVE to identify a valid location for the file.
RESTORE DATABASE is terminating abnormally.

Suggestions how to overcome this??

Regards
Meir


Report this thread to moderator Post Follow-up to this message
Old Post
mrrcomp
10-29-05 06:23 PM


Re: Can't Restore Database to New Server
Do what the error message say. Read about the RESTORE command in Books Onlin
e and use the MOVE
option to specify desired physical files names for your database files.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/
Blog: http:// solidqualitylearning
.com/blogs/tibor/


"mrrcomp" <mrrcomp@discussions.microsoft.com> wrote in message
news:41F751D3-42E2-4292-B0F5- 77E593B6C75D@microso
ft.com...
> Hi
>
> I am attempting to transfer a database from my server to my customers
> server. I took the backup file on CD however when I try to do a restore wi
th
> it I get the following error
>
> Microsoft SQL-DMO (ODBC SQLState:42000)
> Device activation error:The physical file name
>  'd:\sqldata\mssql\da
ta\sa.mdf' may be incorrect.
> File 'SA-V1_dat' cannot be restored to  'd:\sqlData\MSSQL\da
ta\sa.mdf'. Use
> WITH MOVE to identify a valid location for the file.
> Device activation error. The physical file name
>  'd:\sqlData\MSSQL\da
ta\sa_log.ldf' may be incorrect.
> File 'SA-V1_log' cannot be restored to  'd:\sqlData\MSSQL\da
ta\sa_log.ldf'.
> Use WITH MOVE to identify a valid location for the file.
> RESTORE DATABASE is terminating abnormally.
>
> Suggestions how to overcome this??
>
> Regards
> Meir
>


Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
10-29-05 06:23 PM


Re: Can't Restore Database to New Server
As error says to you, use MOVE TO option of the RESTORE command to move
physical files to a new location. If you use EM, check the Options tab when
restoring, there you can specify a new location.

--
Dejan Sarka, SQL Server MVP
Mentor
www. SolidQualityLearning
.com

"mrrcomp" <mrrcomp@discussions.microsoft.com> wrote in message
news:41F751D3-42E2-4292-B0F5- 77E593B6C75D@microso
ft.com...
> Hi
>
> I am attempting to transfer a database from my server to my customers
> server. I took the backup file on CD however when I try to do a restore
> with
> it I get the following error
>
> Microsoft SQL-DMO (ODBC SQLState:42000)
> Device activation error:The physical file name
>  'd:\sqldata\mssql\da
ta\sa.mdf' may be incorrect.
> File 'SA-V1_dat' cannot be restored to  'd:\sqlData\MSSQL\da
ta\sa.mdf'. Use
> WITH MOVE to identify a valid location for the file.
> Device activation error. The physical file name
>  'd:\sqlData\MSSQL\da
ta\sa_log.ldf' may be incorrect.
> File 'SA-V1_log' cannot be restored to  'd:\sqlData\MSSQL\da
ta\sa_log.ldf'.
> Use WITH MOVE to identify a valid location for the file.
> RESTORE DATABASE is terminating abnormally.
>
> Suggestions how to overcome this??
>
> Regards
> Meir
>



Report this thread to moderator Post Follow-up to this message
Old Post
Dejan Sarka
10-29-05 06:23 PM


Re: Can't Restore Database to New Server
Hi,

To add on:


Try the below steps:-

From Query Analyzer:-

1. Using Restore filelistonly command identify the logical file names of the
database backup file


RESTORE FILELISTONLY from disk='c:\x.bak'


2. With the output of the above query use RESTORE database


RESTORE DATABASE <newdbname> from disk='c:\backup\x.bak'
WITH move  'logical_mdf_filenam
e' to 'new physical name with path',
move  'logical_ldf_filenam
e' to 'new physical log name with
Path'

After the restore refer  sp_change_users_logi
n to syncronize the Logins.


Thanks
Hari
SQL Server MVP


"mrrcomp" <mrrcomp@discussions.microsoft.com> wrote in message
news:41F751D3-42E2-4292-B0F5- 77E593B6C75D@microso
ft.com...
> Hi
>
> I am attempting to transfer a database from my server to my customers
> server. I took the backup file on CD however when I try to do a restore
> with
> it I get the following error
>
> Microsoft SQL-DMO (ODBC SQLState:42000)
> Device activation error:The physical file name
>  'd:\sqldata\mssql\da
ta\sa.mdf' may be incorrect.
> File 'SA-V1_dat' cannot be restored to  'd:\sqlData\MSSQL\da
ta\sa.mdf'. Use
> WITH MOVE to identify a valid location for the file.
> Device activation error. The physical file name
>  'd:\sqlData\MSSQL\da
ta\sa_log.ldf' may be incorrect.
> File 'SA-V1_log' cannot be restored to  'd:\sqlData\MSSQL\da
ta\sa_log.ldf'.
> Use WITH MOVE to identify a valid location for the file.
> RESTORE DATABASE is terminating abnormally.
>
> Suggestions how to overcome this??
>
> Regards
> Meir
>



Report this thread to moderator Post Follow-up to this message
Old Post
Hari Prasad
10-30-05 12:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 02:49 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006