SQL Agent Insights:Documentation:Job Monitor Context Menu: Difference between revisions

From SQL Agent Insights Wiki
Line 65: Line 65:


=== Suspend Job ===
=== Suspend Job ===
Suspending a job is a unique feature within ''SQL Agent Insight'' that other products do not have. In the background, technically, when a job is "suspended" it is actually disabled, storing the data in 2 controller jobs within the monitored instance.
From the context menu of any job that is not currently suspended, the following quick options are available. Alternatively, to select an option not in the context menu, select "Custom" to pick the date and time in which to resume operation of the selected job.
* 1 hour
* 4 hours
* 6 hours
* 12 hours
* 24 hours
* 2 days
* 7 days
* 30 days
* Custom
{| {{Template:TableInfoColor}}
|-
|
{|
|-
|style="vertical-align: top;"|
[[file: info-gray-26.png]]
|style="vertical-align: top; padding: 0px 0px 0px 11px;"|
Suspending a job will keep track of the jobs current state upon resuming. That is, if the job was disabled at the time of suspension, the job upon resumption will also be in a disabled state.
Conversely, a job that was in an enabled state will technically be disabled while suspended, however, when the job is resumed, it will be put back into an enabled state.
|}
|}


=== Resume Job ===
=== Resume Job ===

Revision as of 02:59, 14 February 2023

Back to Documentation Main


Error creating thumbnail: Unable to save thumbnail to destination
The context menu after right-clicking on a job within Job Monitor.

The Job Monitor has the following options available when right-clicking on any job within the job pane.

View Job History for [selected job]

Opens the Job History window for the selected job.

Purge Job History

The purge job history context menu option has three options as follows:

  • Purge job history for [selected job]
  • Purge job history for all filtered jobs
    • Opens the Purge Job History dialog with the focus on all filtered jobs, i.e. any jobs that are currently visible in the Job Monitor.
  • Purge job history for all jobs
    • Open the Purge Job History dialog with the focus of all jobs on the monitored instance regardless if they have been filtered.

Job Scripting Actions...

The job scripting actions context menu expands exposing the following choices one has for scripting within SQL Agent Insight's Job Monitor.

  • Script job [selected job] as CREATE
    • Opens the script output window and will script the selected job so that it can be recreated.
  • Script job [selected job] as DELETE
    • Opens the script output window and will script the selected job so that it can be deleted. This does not delete the underlying job.
  • Script ALL jobs on [monitored instance] as CREATE
    • Opens the script output window and will script all jobs so they can be recreated.
  • Script ALL jobs on [monitored instance] as DELETE
    • Opens the script output window and will script all jobs so they can be deleted. This does not delete any jobs.
  • Script all filtered jobs as CREATE
    • Opens the script output window and will script all filtered job in Job Monitor so they can be recreated.
  • Script all filtered jobs as DELETE
    • Opens the script output window and will script all filtered jobs in Job Monitor so they can be deleted. This does not delete any jobs.
  • Script all jobs in category [selected jobs category] as CREATE
    • Opens the script output window and scripts all jobs in Job Monitor that have the same category as the selected job so they can be recreated.
  • Script all jobs in category [selected jobs category] as DELETE
    • Opens the script output window and scripts all jobs in Job Monitor that have the same category as the selected job so they can be deleted. This does not delete any jobs.
  • Script all jobs with schedule [selected jobs schedule] as CREATE
    • This action will be disabled if the selected job does not have a schedule.
    • This actions text will change to reflect if the selected job has multiple schedules.
    • Opens the script output window and scripts all jobs in Job Monitor that have the same schedule(s) as the selected job so they can be recreated.
  • Script all jobs with schedule [selected jobs schedule] as DELETE
    • This action will be disabled if the selected job does not have a schedule.
    • This actions text will change to reflect if the selected job has multiple schedules.
    • Opens the script output window and scripts all jobs in Job Monitor that have the same schedule(s) as the selected job so they can be deleted. This does not delete any jobs.

Start Job at Step...

Opens a new dialog allowing one to select the job step in which to start the selected job.

Stop Job

Sends a stop job request to the SQL Agent on the monitored instance for the selected job.

Suspend Job

Suspending a job is a unique feature within SQL Agent Insight that other products do not have. In the background, technically, when a job is "suspended" it is actually disabled, storing the data in 2 controller jobs within the monitored instance.

From the context menu of any job that is not currently suspended, the following quick options are available. Alternatively, to select an option not in the context menu, select "Custom" to pick the date and time in which to resume operation of the selected job.

  • 1 hour
  • 4 hours
  • 6 hours
  • 12 hours
  • 24 hours
  • 2 days
  • 7 days
  • 30 days
  • Custom

Error creating thumbnail: Unable to save thumbnail to destination

Suspending a job will keep track of the jobs current state upon resuming. That is, if the job was disabled at the time of suspension, the job upon resumption will also be in a disabled state. Conversely, a job that was in an enabled state will technically be disabled while suspended, however, when the job is resumed, it will be put back into an enabled state.

Resume Job

Enable Job

Disable Job

Rename Job...

Delete Job...

Properties...


Back to Documentation Main


Microsoft®, Windows® and SQL Server® are registered trademarks of Microsoft Corporation in the United States and/or other countries.
Some icons courtesy of Icons8