SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Device activation error.


Device activation error.

Author
Message
Arindam Ganguly
Arindam Ganguly
SSC Veteran
SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)

Group: General Forum Members
Points: 271 Visits: 233

Hi,

I have setup a job for restoring full Backup of a Production Database in my Test Server but end up in restoration Failed info even after 90% of restoration is completed with the following error Message :

P41Production restoration job has failed again.
It has failed after restoring 90% of database and giving following error :
Executed as user: SHL-DC1-DOM2\SQLAdmin. ...000] (Error 5173) Device activation error.
The physical file name 'D:\MYSQLData\MyProdn_1.MDF' may be incorrect.
[SQLSTATE 42000] (Error 5105) Cannot associate files with different databases.
[SQLSTATE 42000] (Error 5173) Log file 'D:\MYSQLLogs\MyProdn_log.LDF' does not match the primary file.
It may be from a different database or the log may have been rebuilt previously.
[SQLSTATE 01000] (Error 5108) 10 percent restored.
[SQLSTATE 01000] (Error 3211) Associated statement is not prepared
[SQLSTATE HY007] (Error 0) 20 percent restored.
[SQLSTATE 01000] (Message 3211) 30 percent restored.
[SQLSTATE 01000] (Message 3211) 40 percent restored.
[SQLSTATE 01000] (Message 3211) 50 percent restored.
[SQLSTATE 01000] (Message 3211) 60 percent restored.
[SQLSTATE 01000] (Message 3211) 70 percent restored.
[SQLSTATE 01000] (Message 3211) 80 percent restored.
[SQLSTATE 01000] (Message 3211) 90 percent restored.
[SQLSTATE 01000] (Mess... The step failed.

As per having full right in my Local Drive location I am not being able to find any clue behind it. Can anyone help me in getting any solution for it.

Thanks & Regards,

Arindam Ganguly.


Linda M Palladino
Linda M Palladino
Right there with Babe
Right there with Babe (764 reputation)Right there with Babe (764 reputation)Right there with Babe (764 reputation)Right there with Babe (764 reputation)Right there with Babe (764 reputation)Right there with Babe (764 reputation)Right there with Babe (764 reputation)Right there with Babe (764 reputation)

Group: General Forum Members
Points: 764 Visits: 25

Is the restore on the same server or are you restoring to a different server? If it's the same you probably need to rename the files and/or include the move or replace options.


ajitanu
ajitanu
SSC-Enthusiastic
SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)

Group: General Forum Members
Points: 162 Visits: 0
hi sir, i am in problem i am using sql 2000 with windows NT 2000 server. at morning i have seen my one database marked suspected. it is not connecting. i have deattatched the database and rebuilt my new databasea and save my (.mdf and .ldf files) and i am trying to restore database with my .mdf file(marked suspected database) but it giving error"5173 cannot associate files with different database could not open new datbase 'post' create database log file 'c"\post\postlog.dat does not match the primary file it may be from a different database or the log may have been rebuilt prior.


ajit





Arindam Ganguly (10/3/2005)


Hi,

I have setup a job for restoring full Backup ofa Production Database in my Test Server but end up in restoration Failed info even after 90% of restoration is completed with the following error Message :

P41Production restoration job has failed again.
It has failed after restoring 90% of database and giving following error :
Executed as user: SHL-DC1-DOM2\SQLAdmin. ...000] (Error 5173) Device activation error.
The physical file name 'D:\MYSQLData\MyProdn_1.MDF' may be incorrect.
[SQLSTATE 42000] (Error 5105) Cannot associate files with different databases.
[SQLSTATE 42000] (Error 5173) Log file 'D:\MYSQLLogs\MyProdn_log.LDF' does not match the primary file.
It may be from a different database or the log may have been rebuilt previously.
[SQLSTATE 01000] (Error 5108) 10 percent restored.
[SQLSTATE 01000] (Error 3211) Associated statement is not prepared
[SQLSTATE HY007] (Error 0) 20 percent restored.
[SQLSTATE 01000] (Message 3211) 30 percent restored.
[SQLSTATE 01000] (Message 3211) 40 percent restored.
[SQLSTATE 01000] (Message 3211) 50 percent restored.
[SQLSTATE 01000] (Message 3211) 60 percent restored.
[SQLSTATE 01000] (Message 3211) 70 percent restored.
[SQLSTATE 01000] (Message 3211) 80 percent restored.
[SQLSTATE 01000] (Message 3211) 90 percent restored.
[SQLSTATE 01000] (Mess... The step failed.


As per having full right in my Local Drive location I am not being able to find any clue behind it. Can anyone help me in getting any solution for it.

Thanks & Regards,

Arindam Ganguly.

Arindam Ganguly
Arindam Ganguly
SSC Veteran
SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)SSC Veteran (271 reputation)

Group: General Forum Members
Points: 271 Visits: 233
I am not sure why you are trying to restore the DB. As you dettached the MDF and LDF - Files you should reattch. But prior to dettaching the DB you could have seen the other aspects. Have you checked how much Free Space were available on the Server.
tedo
tedo
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1898 Visits: 523
not sure if you answered this question but this saves me from typing it out. regards terry
he mdf file on the production server is located in a folder that doesn't exist on the test server. On the "Options" tab of the Restore Database dialog box, modify the file locations under "Restore as".
Explanation:
If you try to restore a file from another server and the folder locations for the mdf, ldf or ndf files do not exist, you must override the settings. You can modify the file locations on the “Options” tab of the “Restore Database” dialog box. If you script the restore, you must use the “WITH MOVE” clause.

A restore can be performed if the database does not exist on the server first. If you are a member of the sysadmin role, you already have all rights of the other server roles
MANU-J.
MANU-J.
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27668 Visits: 8766
Please verify whether the destination drives specified for mdf and ldf files reside on test server or not.


Manu
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search