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

Trigger DTSRun Problem

Status
Not open for further replies.

ChuckGann

IS-IT--Management
Jun 16, 2004
18
US
Hi everyone,

We are trying to call a DTS package upon change to a table in SQL2000. The trigger itself runs fine, but it is causing an error message within the application (Great Plains). I think I am misunderstanding when the trigger executes.

What we would like is for the trigger to execute after the transaction(s) in the original table have been committed. It seems to run before they are committed. Is there a way around this?

Thanks.
 
>>What we would like is for the trigger to execute after the transaction(s) in the original table have been committed

The trigger fires upon a DML event on the table, it fires when that event happens, it can not fire after the transaction has been commited because how would a rollback occur if the trigger throws an error

Denis The SQL Menace
--------------------
SQL Server Code,Tips and Tricks, Performance Tuning
SQLBlog.com, Google Interview Questions
 
It sounds like we are trying to get this to do something its not designed to do. The DTS package that the trigger is calling is copying a modified set of data from the original table into a staging area. It is not testing data integrity or anything like that.

Is there another good way of doing this besides setting some kind of schedule to test the data for changes at a particular time increment?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top