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 2005 Forums
 SQL Server Administration (2005)
 Database restore
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ksr39
Posting Yak Master

India
176 Posts

Posted - 03/04/2013 :  10:51:23  Show Profile  Reply with Quote
Hi Experts,

Need a small help as I got a situation where I need to restore (with over write) a database, here the situation is on the source database there are 2 log files but when I see on the destination database it is only one. I feel that we can’t restore on this, please suggest me if I am wrong.

Thanks in Advance.

Thank You All In Advance
KRS39

TG
Flowing Fount of Yak Knowledge

USA
5907 Posts

Posted - 03/04/2013 :  11:06:52  Show Profile  Reply with Quote
That should work fine. If you're using t-sql to do the restore then you just need to specify WITH REPLACE in the command

Be One with the Optimizer
TG
Go to Top of Page

ksr39
Posting Yak Master

India
176 Posts

Posted - 03/04/2013 :  11:38:30  Show Profile  Reply with Quote
Hi TG,

Sorry i didn't get you. can you be bit more specific.

Thank you in Advance.

Thank You All In Advance
KRS39
Go to Top of Page

TG
Flowing Fount of Yak Knowledge

USA
5907 Posts

Posted - 03/04/2013 :  13:38:02  Show Profile  Reply with Quote
You CAN restore a database that already exists at the target. And it makes no difference if the source has two log files but the existing target only has one.

Let us know if you have any problem performing the restore.

Be One with the Optimizer
TG
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
1906 Posts

Posted - 03/05/2013 :  01:56:20  Show Profile  Visit jackv's Homepage  Reply with Quote
You have an option of placing the log files on different paths , use the commands on this post to derive information required and then construct your sql statement
http://www.sqlserver-dba.com/2012/09/sql-server-backup-file-information-needed-for-restore-sql-database.html

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
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.05 seconds. Powered By: Snitz Forums 2000