The purpose of an “undo” file in SQL Server

Tags:
Backup
SQL Server backup
SQL Server restore
Transaction logs
WITH STANDBY
I performed a full backup on a development database (Full Recovery Model) in SQL Server, made some changes, backed up the transaction logs, made some more changes and backed up the transaction logs again. Now, when I restore the database using WITH STANDBY, it puts the database into a read only mode. I've noticed that the WITH STANDBY option creates an "undo" file. What exactly is the undo file for, what does it contain, how does it work, and what can I do with it? Can I roll back a restore if I have restored one to many transaction logs, or is it just a file that the system needs?

Answer Wiki

Thanks. We'll let you know when a new response is added.

This file is used by SQL Server so that it can place the database back into a recovery state so that it can then roll more logs forward. After logs have been restored they can not be rolled back. You would need to restore the full backup again, and then roll the logs forward to the correct point.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

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

Thanks! We'll email you when relevant content is added and updated.

Following