Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Restoring a database

Author  Topic 

JohnBGood
Starting Member

48 Posts

Posted - 2009-12-22 : 14:55:53
When restoring a database from server A to server B, do i need to have the same SQL instance name on both machines??

I've been trying to restore a db on machines that have disimilar names and it is failing - dont know why.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-22 : 15:37:04
No, the instance name can be completely different.

Please post the error. Your paths are probably wrong and need to be adjusted via WITH MOVE of RESTORE DATABASE command.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

tosscrosby
Aged Yak Warrior

676 Posts

Posted - 2009-12-22 : 15:40:33
Also add the SQL statement you are using for the restore. IF using SSMS or EM, maybe the screen shots??

Edit - typo!

Terry

-- Procrastinate now!
Go to Top of Page

JohnBGood
Starting Member

48 Posts

Posted - 2009-12-22 : 18:53:16
here is the script that I'm using:

RESTORE DATABASE ARTEMPR_121409
FROM DISK = 'C:\Documents and Settings\Administrator\Desktop\MTBank\ARTEMPR_121409.bak'
With replace

and the error is...
Msg 3183, Level 16, State 2, Line 1
RESTORE detected an error on page (0:0) in database "ARTEMPR_121409" as read from the backup set.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-22 : 23:24:15
You've got a bad backup. You should run DBCC CHECKDB on the source system. If that checks fine, then perform another full backup.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -