Skip to content

Checking Status Of SQL Server 2005/2008 Database: Another Quickie

May 2, 2009

Here’s another quickie. If you liked my Monitoring SQL Server Performance Quickie, I’m sure you will love this yet another quickie.

Suppose you want to check the status of a particular database (Online, Offline, etc), there’s a quickie for that. Here it is:

SELECT databasepropertyex('TestDB''STATUS')
Here’s the quickie in action:


You can find the complete list of the properties that you can use from this link:

kick it on

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

  • Archives

  • RSS SQLServerPedia

  • RSS SQL Crunch – Hot SQL Links

  • My Bookmarks

  • Business Career DBA Tool Events free ebook Humor IT News Members Only Microsoft MySQL Operating System Oracle Personal Reporting Services SQL Server SQLServerPedia Syndication SSC SSIS TSQL Tutorial Uncategorized Video

  • Software Blogs - BlogCatalog Blog Directory
  • %d bloggers like this: