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.