Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Want to thank those people who have made this forum such a valuable place to visit each day..."

Geography

Where in the world do Tek-Tips members come from?
GrandMauler (Programmer)
11 Jun 07 14:15
Ok, this is what I want to do:

I've developed an SSIS Package that goes to a folder, finds a certain file, pulls the file and processes it.

It does this once a month.

However, sometimes the file wont be there on that day.  It may get there the following day or the day after.

I've put the SSIS package in a Scheduled SQL Job.


Within the SSIS package, I'd like to put a check where, if it doesn't find the file, it doesn't go any further and reschedules the job for the next day.


I'm thinking of putting, within the SSIS package, a logic tree where, if it doesn't find the file, it would then execute an SQL Task using sp_update_job and sp_attach_schedule... basically updating the schedule to run once a day until it finds the file.

If it does find it, the job is updated to run once a month on the first monday.


Has anyone done this sort of thing before?



Thanks in advance.
mrdenny (Programmer)
11 Jun 07 14:46
Same answer as in the other thread.

It should work fine, however you may want to look into adding a new one time schedule instead of changing your monthly schedule.

Denny
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration)
MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005)

--Anything is possible.  All it takes is a little research. (Me)
noevil
http://www.mrdenny.com

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close