Getting information about offline databases and pages  Index-level fault isolation for data-only-locked tables

Chapter 11: Developing a Backup and Recovery Plan

Bringing offline pages online

To make all the offline pages in a database accessible, use sp_forceonline_db:

sp_forceonline_db dbname, 
	{"sa_on" | "sa_off" | "all_users"}

To make an individual offline page accessible, use sp_forceonline_page:

sp_forceonline_page dbname, pgid 
	{"sa_on" | "sa_off" | "all_users"}

With both of these procedures, you specify the type of access.

You cannot execute sp_forceonline_db or sp_forceonline_page inside a transaction.

You must have the sa_role and be in the master database to execute sp_forceonline_db and sp_forceonline_page.





Copyright © 2005. Sybase Inc. All rights reserved. Index-level fault isolation for data-only-locked tables

View this book as PDF