SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Job Threshold - Different threshold for each job steps


SQL Job Threshold - Different threshold for each job steps

Author
Message
Kicking_Fish0713
Kicking_Fish0713
SSC Journeyman
SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)

Group: General Forum Members
Points: 84 Visits: 124
Hello,
Can I set the rule that looks at long running SQL jobs to have different thresholds for each job steps? specific for each job steps? I would like to actually have different thresholds if its possible.Please advise.
Adiga
Adiga
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3336 Visits: 21012
You may use a custom query which monitors the job status. This query gives the status of a given job
EXEC msdb.dbo.sp_help_job @Job_name = 'The Job Name'



The following tables hold all the information about the jobs.

msdb.dbo.SysJobs
msdb.dbo.SysJobSteps
msdb.dbo.SysJobSchedules
msdb.dbo.SysJobServers
msdb.dbo.SysJobHistory

Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search