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


restore database with different domains


restore database with different domains

Author
Message
surma.sql
surma.sql
Old Hand
Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)

Group: General Forum Members
Points: 314 Visits: 364
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
Tava
Tava
Right there with Babe
Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)

Group: General Forum Members
Points: 769 Visits: 806
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.
Bob Griffin
Bob Griffin
SSCrazy
SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)

Group: General Forum Members
Points: 2011 Visits: 702
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.
Tava
Tava
Right there with Babe
Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)

Group: General Forum Members
Points: 769 Visits: 806
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.
anthony.green
anthony.green
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24582 Visits: 6519
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.



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
When a question, really isn't a question - Jeff Smith
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger


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