Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Job Enabled and Schedule Enabled confusion Expand / Collapse
Author
Message
Posted Tuesday, April 20, 2010 12:47 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, July 25, 2014 8:19 AM
Points: 293, Visits: 813
I just tried to reproduce the issue as well and couldn't do it.
This DID occur on my production box this morning though.
Post #907169
Posted Tuesday, April 20, 2010 1:14 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 11:55 AM
Points: 23,034, Visits: 31,560
The reason I was asking is i had a similar problem when I would failover our mirror databases. The code that was enabling/disabling the database specific jobs wasn't "working". Where the jobs were being disabled, they kept working and where the were being enabled they would run.

I had to modify my code to use the sp_update_job stored procedure in the msdb database. Turns out that SQL Server Agent caches the information and this stored procedure forces a notification to SQL Server Agent.



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #907189
Posted Tuesday, April 20, 2010 1:57 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, July 25, 2014 8:19 AM
Points: 293, Visits: 813
Sounds like the lesson for the day is to use sp_update_job to enable / disable and to avoid the GUI
Post #907215
Posted Tuesday, April 20, 2010 2:18 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 11:55 AM
Points: 23,034, Visits: 31,560
Not really. When I used the GUI to enable/disable the jobs, it cleared up the problem. I am pretty sure that the GUI uses the stored proc. You would need to run a trace to be sure.



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #907244
Posted Wednesday, April 21, 2010 5:19 PM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 5:08 PM
Points: 3,092, Visits: 5,876
Few months ago we decided not to have a schedule enabled in disabled jobs to avoid unwanted runs, like described above


Post #908225
Posted Wednesday, April 21, 2010 10:54 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 9:56 PM
Points: 2,270, Visits: 3,781
I guess these are sporadic issues related to job schedules. Is there something we might be missing here?

I am getting little confused.


Mohammed Moinudheen
Post #908309
Posted Friday, April 23, 2010 12:24 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, July 25, 2014 8:19 AM
Points: 293, Visits: 813
FYI, https://connect.microsoft.com/SQLServer/feedback/details/552707/job-disabled-and-schedule-enabled?wa=wsignin1.0#tabs
Post #909740
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse