SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Need help Auditing transaction log
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

devadmin
Starting Member

1 Posts

Posted - 05/15/2012 :  21:15:45  Show Profile  Reply with Quote
Hello fellow SQLTeam members.

I have encountered the situation where i need to find out which of our DBA's disabled an SQL job. We start the jobs using MS SQL Server Management Studio in the Job Activity Monitor. You can right click on the job and specify "Disabled"

What i'm looking for is to how to find out a logon id which has disabled the job since all of DBA use their logon to start the studio. This information should be somewhere but it's not easy to find.

Can anybody please pinpoint me to direction where i can at least do some research on this topic.

Your help is greatly apreciated.

Lumbago
Norsk Yak Master

Norway
3245 Posts

Posted - 05/16/2012 :  06:08:15  Show Profile  Reply with Quote
I don't think you'll find this anywhere unless you actively added an ALL SERVER trigger beforehand that captures this event. The only place I can think of where you might find relevant information is in the servers security-log.

- Lumbago
My blog-> http://thefirstsql.com/2011/07/08/how-to-find-gaps-in-identity-columns-at-the-speed-of-light/
Go to Top of Page

ovc
Starting Member

Romania
30 Posts

Posted - 05/19/2012 :  13:35:52  Show Profile  Reply with Quote
Hi

you are looking for an event class sp starting looking like this.

EXEC msdb.dbo.sp_update_job @job_id=N'dd149496-49f1-402b-bc05-d857349a7374',
@enabled=0

Off course the job_id would differs in your case.

Depending on the trace file size and the periode you are searching for, I would import the trace file in a table in SQL Server and then I would perform a search after "sp_update_job" and "@enabled=0"
Go to Top of Page

ovc
Starting Member

Romania
30 Posts

Posted - 05/19/2012 :  13:38:52  Show Profile  Reply with Quote
this was just assuming that you were taking a profiler trace at that point with the appropriate data.
If this data is not available, from what i know, there is no other way finding out who did this.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000