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 2012 Forums
 SQL Server Administration (2012)
 Tracking Who Change the DB Recovery Model.

Author  Topic 

NguyenL71
Posting Yak Master

228 Posts

Posted - 2014-03-06 : 17:01:24
Hello,

I need to find down who was changing the DB recovery model. Is there a TSQL command to track that?. I am looking error logs and can't find it. Of course, several of us in sysadmin role.

SQL 2012.

Thank you in advance.

nickeyclayton
Starting Member

4 Posts

Posted - 2014-03-07 : 02:37:11
To use this TSQL command for tracking db changes.

ALTER TABLE Person.Contact
ENABLE CHANGE_TRACKING
WITH (TRACK_COLUMNS_UPDATED = ON)

and you could also try this tool to find out who are changing db recovery model.
Go to Top of Page

NguyenL71
Posting Yak Master

228 Posts

Posted - 2014-03-07 : 11:45:23

I am looking for TSQL tracking DB option changed for the last few days. NOT tracking on the table.


quote:
Originally posted by nickeyclayton

To use this TSQL command for tracking db changes.

ALTER TABLE Person.Contact
ENABLE CHANGE_TRACKING
WITH (TRACK_COLUMNS_UPDATED = ON)

and you could also try this tool to find out who are changing db recovery model.

Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2014-03-08 : 03:05:41
For sql server 2012 recovery model change is normally logged in the SQL Server errorlog

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
   

- Advertisement -