Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wait for DTS to complete before updating

Status
Not open for further replies.

tman135

Programmer
Joined
Feb 28, 2001
Messages
48
Location
US
I have a stored procedure that does two things...
1) It runs a series of jobs which run DTSs to transfer data into temp tables
2) It then runs a series of jobs that run stored procedures to process the data.

Question is how can I ensure that the DTSs run to completion before the stored procs run??
 
You could do something like this:

First step in your DTS package sets say a flag and date to indicate Start and Start time in a table on your database. Last step sets the flag and date to successful and an end time.

Subsequent stored procs check the flag status and react accordingly.

Altenativly use the success/failure workflow within yout DTS package and include all your stored procedure within steps inside the package.


Rick.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top