restore database with different domains

  • Hello

    I had one task.

    I need to restore on DATABASE on [Server A] from [Server B].

    [Server A] is on VINEMAPPLE Domain and

    [Server B] is on mpeboe domain.

    so when I try to restore DATABASE from [Server B] to [Server A] then I get below error message

    Msg 3201, Level 16, State 1, Line 1

    Cannot open backup device '\\[Server A]\stars\ABC\STARS_backup_2012_11_19_173006_6820968.bak'. Operating system error 5(Access is denied.).

    Msg 3013, Level 16, State 1, Line 1

    BACKUP DATABASE is terminating abnormally.

    so please help me to resolve this issue.

    Thanks

  • surma.sql (11/19/2012)


    Hello

    I had one task.

    I need to restore on DATABASE on [Server A] from [Server B].

    [Server A] is on VINEMAPPLE Domain and

    [Server B] is on mpeboe domain.

    so when I try to restore DATABASE from [Server B] to [Server A] then I get below error message

    Msg 3201, Level 16, State 1, Line 1

    Cannot open backup device '\\[Server A]\stars\ABC\STARS_backup_2012_11_19_173006_6820968.bak'. Operating system error 5(Access is denied.).

    Msg 3013, Level 16, State 1, Line 1

    BACKUP DATABASE is terminating abnormally.

    so please help me to resolve this issue.

    Thanks

    Does the user who is trying to restore the database have access to the path '\\[Server A]\stars\ABC\STARS_backup_2012_11_19_173006_6820968.bak'

    I don't think they will and It is more than likely an issue with Windows Security.

  • Specifically, the user that the sql database server is running as has to have permissions to read the backup file. If possible, browse to the bak file as the sql server user. Another option is to copy the bak file directly onto the machine that you are restoring to.

  • Bob Griffin (11/19/2012)


    Specifically, the user that the sql database server is running as has to have permissions to read the backup file. If possible, browse to the bak file as the sql server user. Another option is to copy the bak file directly onto the machine that you are restoring to.

    It's a different domain though, this would make a difference when authenticating wouldnt it?

    copying the .bak from ServerA to somewhere local on ServerB as restoring will more than likely fix his problem but i think he is looking for a solution via the method he is trying.

  • Tava (11/19/2012)


    Bob Griffin (11/19/2012)


    Specifically, the user that the sql database server is running as has to have permissions to read the backup file. If possible, browse to the bak file as the sql server user. Another option is to copy the bak file directly onto the machine that you are restoring to.

    It's a different domain though, this would make a difference when authenticating wouldnt it?

    If you had full domain trusts in place authentication would be taken care of at the domain level, if there is no trust in place between the two domain then yes authentication would fail.

    Now you would be able to map a drive to the server using a login local to the source domain and restore the database. I know I have done it the other way round where there wasn't a domain in place and I needed to backup the database to a different server. Just need to find the script I used to do it.

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

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