Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

restore database with different domains Expand / Collapse
Author
Message
Posted Monday, November 19, 2012 7:03 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, November 19, 2012 6:56 PM
Points: 104, 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
Post #1386650
Posted Monday, November 19, 2012 7:13 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, April 27, 2014 8:38 PM
Points: 90, Visits: 420
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.
Post #1386653
Posted Monday, November 19, 2012 8:04 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, July 7, 2014 10:01 AM
Points: 1,136, Visits: 697
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.
Post #1386655
Posted Monday, November 19, 2012 9:04 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, April 27, 2014 8:38 PM
Points: 90, Visits: 420
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.


Post #1386661
Posted Tuesday, November 20, 2012 1:58 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 4:34 AM
Points: 5,218, Visits: 5,070
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
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

Post #1386735
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse