Using sp_dbrecovery_order  Listing the user-assigned recovery order of databases

Chapter 11: Developing a Backup and Recovery Plan

Changing or deleting the recovery position of a database

To change the position of a database in a user-defined recovery sequence, delete the database from the recovery sequence and then insert it in the position you want it to occupy. If the new position is not at the end of the recovery order, use the force option.

To delete a database from a recovery sequence, specify a recovery order of -1.

For example, to move the pubs2 database from recovery position 2 to recovery position 1, delete the database from the recovery sequence and then reassign it a recovery order as follows:

sp_dbrecovery_order pubs2, -1
sp_dbrecovery_order pubs2, 1, "force"




Copyright © 2005. Sybase Inc. All rights reserved. Listing the user-assigned recovery order of databases

View this book as PDF