Re: SQL Server Job scheduling
From: Gregory A. Larsen (greg.larsen_at_netzero.com)
Date: 06/14/04
- Next message: Timothy: "TimeStamp Question"
- Previous message: Gregory A. Larsen: "Re: How to change characterset in SQL Enterprise Manager?"
- In reply to: James: "SQL Server Job scheduling"
- Next in thread: Aaron [SQL Server MVP]: "Re: SQL Server Job scheduling"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Jun 2004 14:14:14 -0700
In order to do what you are asking you would first need to establish a
business day calendar. From this calendar you could then derive the
schedule for your job, and use the "sp_add_jobschedule" sp to schedule the
jobs. Or have a job that runs every day, and when it detects the last
working day of the month, using the business day calendar, the sp then use
"sp_start_job", to start your end of month processing. Of course what I am
suggesting is basically a homegrown scheduling process.
-- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---- Need SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples "James" <anonymous@discussions.microsoft.com> wrote in message news:1c42f01c45252$4d8f2840$a501280a@phx.gbl... > I have a problem with SQL Server job scheduling. As far as > I know you can not specify a job to be run 'last business > day of the month'. > > This created a problem for me last month. I set the job to > run 'last weekday of the month' and it ran on 31st of May > which was a holiday instead of running on the 28th friday > which was the last business day of the month. > > Is there way to make SQL Server jobs to recognize the > holidays ?? Or even a script ?? > > Thanks for any help.
- Next message: Timothy: "TimeStamp Question"
- Previous message: Gregory A. Larsen: "Re: How to change characterset in SQL Enterprise Manager?"
- In reply to: James: "SQL Server Job scheduling"
- Next in thread: Aaron [SQL Server MVP]: "Re: SQL Server Job scheduling"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|