I have a SQL database that is being backed up nightly. The corresponding transaction log is not. I can restore the previous night's backup, but I need to incorporate the transaction log that is still intact.

    Requires Free Membership to View

As long as the database is set to FULL recovery or Bulk-Logged you will be able to issue a transaction log backup. To create a backup of the transaction log you can either use Enterprise Manager or you can issue the following command:

BACKUP LOG databasename TO DISK = 'C:\filename_LOG.bck'

Once you have the transaction log backed up you can then restore both your full backup and your transaction log backup.

Do you have comments on this Ask the Expert Q&A? Let us know.

This was first published in July 2005

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: