Device activation error.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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

  • Please verify whether the destination drives specified for mdf and ldf files reside on test server or not.

    Manu

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply