Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to tell if db is in standby 1

Status
Not open for further replies.

k108

Programmer
Jul 20, 2005
230
0
0
US
Hi,

Is there a sql statement you can run to determine if a particular database is in standby mode?

Thanks

p.s. I notice that I am able to run certain queries against my standby database. What can and can you *not* do if a database is in standby?
 
Hi K108,

If you are using query analyser, run

Code:
sp_helpdb

and that will return the status of all databases on the server. If you want to look at a particular one just enter the database name after sp_helpdb

Code:
sp_helpdb YOURDB

M.
 
Yes, I use the sp_helpdb command a lot. Unfortunately, it does not tell you if a database is in standby mode.
 
Use this:

Code:
SELECT DATABASEPROPERTYEX('mydb', 'IsInStandBy')

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top