In message <nKJ_d.84897$y25.71995@fe3.news.blueyonder.co.uk>, Jamie
Thomson <jamiekthomson@removethisbit.blueyonder.co.uk> writes
[quoted text, click to view] >Your first task in the package could check to see if today is the 3rd day
>and if its not, ensure the package doesn't continue by affecting the
>precedence constraints.
>
>That's probably the best way of doing it I think.
>
>Regards
>Jamie Thomson
>An SSIS blog -
http://blogs.conchango.com/jamiethomson/category/71.aspx >
>
>"jaylou" <jaylou@discussions.microsoft.com> wrote in message
>news:AC87D25F-D80C-48C0-A5B8-CB64367990EB@microsoft.com...
>> Hi all,
>> Is there a way to schedule a DTS pacakge to run on the 3rd working day of
>> every month?
>>
>> TIA,
>> Joe
>>
>
>
This may be what you mean by "affecting the precedence constraints", but
the simplest way to stop execution is to use a workflow script on a
step, and return DTSStepScriptResult_DontExecuteTask. There are
alternatives around disabling steps or changing them precedence
constraints themselves, but they get very messy real quickly and are
harder to maintain as they require you to hard code object names.
Simple example of using workflow for this purpose -
How can I check if a file exists?
(
http://www.sqldts.com/default.aspx?211)
Whilst pure date functions will get you the 3rd day of the working week
based on a Monday to Friday pattern, you probably still need to cope
with public holidays. For this I suggest a simple table with these dates
in. I use such a table for all sorts of things, although I originally
built it so that I did not have to re-work schedules and alert routines
for public holidays, and then change them back the next week. For UK
related systems this is a very useful page-
DTI Employment Relations - UK Public and Bank Holidays
(
http://www.dti.gov.uk/er/bankhol.htm)
--
Darren Green (SQL Server MVP)
DTS -
http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org