5 replies
by roc180
Lot of ways to go here. First off I'm pretty sure you can't start a DTS package from inside a trigger. I would suggest that you write a trigger on the table that is being updated, that on the after_update kicks the trigger that then insersts the data into a stage table. I would then have a sql scheduled job running at whatever interval you decide to read my stage table and do work (sql mail). The job would also clean up after itself by deleting records out of the stage table that it processes.
Good Luck
Neal Martinelli
by jgill
by glen_mcleod
dtsrun will kick off a DTS package, but since it's a command-line utility (in 7.0 anyway), you'll have to call it using xp_cmdshell(). Be sure you assign proper permissions, as this is a restricted stored proc for most users.
Glen
by jgill
by jgill
This discussion is closed to new replies.
Trending Desktop posts
Sort by Trending