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:

sqlserverstatus

You can find the complete list of the properties that you can use from this link: http://msdn.microsoft.com/en-us/library/ms186823.aspx

kick it on DotNetKicks.com

About these ads
No comments yet

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

You are commenting using your Google+ 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
  • Follow

    Get every new post delivered to your Inbox.

    Join 29 other followers

    %d bloggers like this: