dbTalk Databases Forums  

SQL Error Logs - changes to DB states and detachements

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss SQL Error Logs - changes to DB states and detachements in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
snafu66@hotmail.co.uk
 
Posts: n/a

Default SQL Error Logs - changes to DB states and detachements - 08-29-2007 , 12:57 AM






Hi All,

Hoping someone can assist with this. Is there an SQL trace flag, or
other method, where I can get the SQL server error logs (2000 and
2005) to log database detachements, and changes in DB status (eg to
read only from online etc).

I thought about a trigger on sysdatabases (sys.databases) but am
highly skeptical of triggers on system tables.

Why am I doing this? I need to monitor the up time of individual
databases on an instance, and third party tools are not an option.

thanks in advance.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.