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
 SQL Server 2008 Forums
 High Availability (2008)
 After restore of database after logshipping the fi

Author  Topic 

csaha
Yak Posting Veteran

52 Posts

Posted - 2012-11-12 : 14:57:07
If I run the following command use [RE7]go sp_helpfile go in the primary server the names are RE7_Sample and RE7_Sample_log and file names are D:Datare7.mdf and D:Datare7_log.ldf. After the restore of log shipping in the secondary server the file name changes to re7_sample.mdf, RE7_Sample_log.ldf and the names are RE7_sample and RE7_Sample_log.

How can I restore so that the file name and the names remains the same in the primary and secondary server.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-11-12 : 15:14:11
How are you doing the restore? If using the GUI, script out the command and post it here.

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

Subscribe to my blog
Go to Top of Page

csaha
Yak Posting Veteran

52 Posts

Posted - 2012-11-12 : 16:35:49
RESTORE LOG [database]
GO

I am restoring the secondary database using the transactional log.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-11-12 : 16:42:28
I meant the initial restore database command. If you want to fix this, you'll need to redo log shipping and issue the proper command.

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

Subscribe to my blog
Go to Top of Page
   

- Advertisement -