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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to run sql/stored proc before and after dts package 1

Status
Not open for further replies.

Kingkumar

Programmer
Jan 21, 2003
167
US
Hi,
I have a dts pacakge to transfer data from excel file to sql server.
Now what i want to do is to truncate the table before the dts package is executed and then run a stored proc/ sqlstatements once the dts package has run successfully.
It might be simple but i dont know much about dts as new to it so any help would be highly appreciated.
Thanks.
--King
 
In your dts package, create an "Execute SQL Server Task". Put your truncate table statement in that then click OK. Back at your main design, click on the SQL Server Task you just created, hold <ctrl> and click on your Provider (the box looking thing). Go up to workflow and chose On Success or On Completion. That's it.

Gonna get a good running start and throw myself at the wall as hard as I can man --WZ--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top