Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 State Change Date

Author  Topic 

Norwich
Posting Yak Master

158 Posts

Posted - 2006-06-20 : 04:19:49
Hi

Quick Question:
Is there anyway that I can check when a database last changed it's status?

example: From Suspect to Online

Regards
N

The revolution won't be televised!

Kristen
Test

22859 Posts

Posted - 2006-06-20 : 17:23:11
Is it in the SQL (Error) Log?

Kristen
Go to Top of Page

Norwich
Posting Yak Master

158 Posts

Posted - 2006-06-21 : 02:17:49
I was hoping that it was stored in a table somewhere in the master db but I guess the error log will do.

Thanks

Regards
N

The revolution won't be televised!
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-06-21 : 09:07:23
SQL2005 I believe you could put a trigger-type-thingie (i.e. on a system table) to allow you to record that, but not in SQL 2000 that I know of.

You could have scheduled job compare the sysdatabases table every, say, minuet against a copy stored in your own table and "audit" and changes that are relevant to you.

Kristen
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-06-21 : 09:40:59
quote:
Originally posted by Kristen

SQL2005 I believe you could put a trigger-type-thingie (i.e. on a system table) to allow you to record that, but not in SQL 2000 that I know of.



Ah yes, trigger-type-thingy's ....
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-06-21 : 09:46:37
I knew you'd know what knew not
Go to Top of Page

Norwich
Posting Yak Master

158 Posts

Posted - 2006-06-22 : 01:46:22
Good Idea!

I think the trigger-type-thingie will do the job

Regards
N

The revolution won't be televised!
Go to Top of Page
   

- Advertisement -