c# - Determine the expected run times of an SQL agent within a timeframe -


Is a fixed SQL Agent a reliable way to schedule time to run within a time frame?

I have a Microsoft.SqlServer.Management.Smo.Agent.Job object, but to calculate the time of running on the basis of my programs, to make the argument again I'm hoping that something has been made in the functionality for this.

No, unfortunately there is not. And when you have many job programs, it is more complex to find out.

However, for the simple case when you have just 1 schedule, I think you can do the following

  • Its NextRunDate
  • Set the Schedule to the Next Run Date
  • Unless you cover your gaps Do not, repeat
  • Be sure to set your initial value to ActiveStartDate >

    You can do this only once, when the job is created , And the results continue. Thus, every time you eliminate the risk of revising the work needed to evaluate run time (because changing the adstandards will actually modify the program)

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -