SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 High Availability (2008)
 After restore of database after logshipping the fi
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

csaha
Yak Posting Veteran

52 Posts

Posted - 11/12/2012 :  14:57:07  Show Profile  Reply with Quote
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

USA
35940 Posts

Posted - 11/12/2012 :  15:14:11  Show Profile  Visit tkizer's Homepage  Reply with Quote
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 - 11/12/2012 :  16:35:49  Show Profile  Reply with Quote
RESTORE LOG [database]
GO

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

tkizer
Almighty SQL Goddess

USA
35940 Posts

Posted - 11/12/2012 :  16:42:28  Show Profile  Visit tkizer's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000