January 20, 2003 at 5:00 am
I have a very simple DTS package that extracts data from a spreadsheet and then "on success" it executes a simple stored procedure using 'Execute SQL Task'.
I noticed that if the 2nd step failed (the SP) the first step still completed and copied the data from the spreadsheet into the database. Of course this meant that the data was not complete in the table because the stored procedure manipulated it.
How do I ensure that the entire package completes or all steps rollback?
Thanks
January 20, 2003 at 5:27 am
In DTS Designer go to the package properties, i.e.
Click package,....properties.
Click advanced tab
Also check the workflow properties of the step . You need to check the options tab.
I need to check in the book i recently finished on DTS but I have was in an accident since si this is a bit fuzzy right now.
January 20, 2003 at 2:57 pm
You could also use transactions within your stored procedure. That way any changes it makes will be rolled back on failure.
Thanks
Phill Carter
--------------------
Colt 45 - the original point and click interface
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply