Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > Re: Applying tr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 11 Topic 11172 of 11517
Post > Topic >>

Re: Applying tranaction log to old data file

by Erland Sommarskog <esquel@[EMAIL PROTECTED] > Jun 24, 2008 at 09:06 PM

(koszuf@[EMAIL PROTECTED]
) writes:
> on my SQL Server data file is corrupted. Unfortunately last backup was
> made about half year ago. Transaction log seems to be ok.
> Is it possible to restore data file from old backup and apply
> transactions from current transaction log?
 
Yes, if you have run with full or bulk-logged recovery for all these six
months. If you have run with simple recovery for just a second since your 
last backup, you can forget about it. 

In order to do this, you need to use the WITH NO_TRUNCATE option when you
backup your transaction log.

-- 
Erland Sommarskog, SQL Server MVP, esquel@[EMAIL PROTECTED]
 Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
 




 11 Posts in Topic:
Applying tranaction log to old data file
koszuf@[EMAIL PROTECTED]   2008-06-24 07:01:47 
Re: Applying tranaction log to old data file
Ed Murphy <emurphy42@[  2008-06-24 07:35:00 
Re: Applying tranaction log to old data file
Erland Sommarskog <esq  2008-06-24 21:06:35 
Re: Applying tranaction log to old data file
koszuf@[EMAIL PROTECTED]   2008-06-24 23:53:05 
Re: Applying tranaction log to old data file
"Dan Guzman" &l  2008-06-25 06:41:14 
Re: Applying tranaction log to old data file
koszuf@[EMAIL PROTECTED]   2008-06-25 05:49:26 
Re: Applying tranaction log to old data file
"Dan Guzman" &l  2008-06-25 21:06:59 
Re: Applying tranaction log to old data file
Sybaseguru <collap@[EM  2008-06-26 18:56:00 
Re: Applying tranaction log to old data file
"Dan Guzman" &l  2008-06-26 19:53:27 
Re: Applying tranaction log to old data file
Erland Sommarskog <esq  2008-06-26 21:54:58 
Re: Applying tranaction log to old data file
"Dan Guzman" &l  2008-06-26 19:55:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:11:40 CST 2008.