Solved

recovery mode of database at last service startup

Posted on 2011-09-16
4
346 Views
Last Modified: 2012-05-12
is the info of what the databases has as recovery mode when the services last started up, stored anywhere in system tables for us to see?
0
Comment
Question by:25112
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 21

Expert Comment

by:JestersGrind
ID: 36551583
The are a number of ways to see what the current recovery model is.  I don't know of any to see what the recovery model used to be.  Why do you need to know that?  It's only 1 of 3 options.

Greg

0
 
LVL 25

Accepted Solution

by:
jogos earned 250 total points
ID: 36552264
Don't think it is stored at startup. But the backup-history can tell you when wich backup is taken. Compare that with other databases and you can see when it's changed.

To see info about all databases including recovery model

exec sp_helpdb


To see it for one db
 
exec sp_helpdb 'testdb'
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 250 total points
ID: 36552858
Any change to the Recovery Model is saved in the SQL Server Error Log.

The entry will look something like this:

Message
Setting database option RECOVERY to SIMPLE for database YourDatabaseName.
0
 
LVL 5

Author Comment

by:25112
ID: 36560992
Greg, it is to find out when and who changed the recovery model..

both jogos method (from backup) and acperkins method works good.. thanks!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question