I have a SSIS package that is scheduled to run at the same time every hour/day/whatever using SQL Server Agent. If the package fails then I don't want to run the package again until I've fixed the problem. For this reason i want to disable the agent job at the start of the package and then enable it again at the end.
Has anyone done any work on controlling SQL Server Agent jobs from within an SSIS package
How have you done it
Any advice would be much appreciated.
I feel a custom task coming on...

Is there an API for SQL Server Agent
Thanks
Jamie
SQL Server Agent control
rfiddelke
Enhanced Error Component to provide the column name that caused a row to fail (almost complete)
SQL profiler log file Source. Reads SQL Profiler files
Split Transform. That can split a string into tokens.
Log parser source. To process log files
IdentityInsert Transform. Bulk Inserts data into a SQL table and provides the identity values that are generated.
AlexeyK
Yeah, but I think is a nice easy candidate for a custom task. Watch this space!
gameboy_advance
SMO would be the API for this sort of stuff, although you could probably use DMO still.
sharpbart
sp_update_job