Need solution on SQL Job Scheduling RRS feed

  • Question

  • Hi,

    I have created a sql Job in which i have added two steps. These two steps executing two diffent stored procedures. My requirement is i want to schedule 1st step should execute on 10th of  every month and 2nd step should execute on 15th of every month. Is this possible through single SQL Job?

    Thanks in advance,


    Wednesday, November 7, 2012 7:52 AM


All replies

  • In that case I would create two jobs, that's all...

    Best Regards,Uri Dimant SQL Server MVP, http://sqlblog.com/blogs/uri_dimant/

    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Blog: Large scale of database and data cleansing
    MS SQL Consultants: Improves MS SQL Database Performance

    Wednesday, November 7, 2012 7:59 AM
  • There is no mapping between Job step and Schedule. Hence as Uri suggested it would be working if you create two jobs and map it appropriately.

    Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

    Wednesday, November 7, 2012 8:44 AM
  • I agree with the earlier posts.

    A very ugly solution would otherwise be to add logic into the stored procedures to check for day of month and exist if not "the right day". But hardwiring scheduling logic into a procedure isn't neat, at all.

    Tibor Karaszi, SQL Server MVP | web | blog

    Thursday, November 8, 2012 9:45 AM