Is there a way how we can know when was a database taken offline?
Platform: SQL server 2005
Is there a way how we can know when was a database taken offline?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There doesn’t seem to be a way in TSQL to do this. It isn’t captured as an attribute in in the sys.databases catalog view, and most other possibilities (such as DBCC) require the database to be online in order to work.
However, the information is captured (with date/time stamp) in the event log. So you’ll see an event from MSSQLSERVER with a description such as “Setting database option OFFLINE to ON for database MyDatabase”.