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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 What is Executing This Job?
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 10/24/2013 :  14:10:36  Show Profile  Reply with Quote
2008 R2

I have a job that gets fired somehow - not ny the Agent schedule.

How can I determine where/what runs it?
Thanks, Jack

tkizer
Almighty SQL Goddess

USA
38200 Posts

Posted - 10/24/2013 :  14:48:43  Show Profile  Visit tkizer's Homepage  Reply with Quote
Run a trace. The job history should at least tell you the userid though.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 10/24/2013 :  16:06:10  Show Profile  Reply with Quote
The history does show the login that executed the job, yes. The job intentionally has no schedule but has ran a few times at varying hours and dates. No triggers exist so I'm a bit puzzled. What criteria would I need to select if I build a trace?
Thanks, Jack
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
38200 Posts

Posted - 10/24/2013 :  16:24:09  Show Profile  Visit tkizer's Homepage  Reply with Quote
To kickoff a job, you run sp_start_job. So SP:Completed in a trace should capture it.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
  Previous Topic Topic Next 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.07 seconds. Powered By: Snitz Forums 2000