I need to query the back up database, but when the backup is in restore i can't query it. Is their a way to check if the database is in restore. Basically, a store procedure run every 5 mins, if the database is in restore, I want the procedure to quit it self and run again in 5 mins.