all groups > sql server (alternate) > april 2004 >
You're in the

sql server (alternate)

group:

how to get online/offline status


how to get online/offline status Stefan Behrens
4/30/2004 9:11:52 AM
sql server (alternate):
Hi,

i try get information about the online or offline status of a database
within ms-sql srv 2000.

I can look it up within server manager, but I'm looking for a way to get
this information from the command line or a select statement.

Is there a command or a sql statement that tells me the status of a
database ? There's some information in master.dbo.sysdatabases, but it
looks very cryptic.

Any help appreciated, thanks,
Re: how to get online/offline status Simon Hayes
4/30/2004 11:14:41 AM

[quoted text, click to view]

select databasepropertyex('master', 'status')

Simon

AddThis Social Bookmark Button