trigger does not fire when inserting via DTS

trigger does not fire when inserting via DTS

Post by Tanj » Thu, 22 Mar 2001 23:12:44



Hi,
I have written a triger on a base table that inserts changed and inserted
rows from the base table into a history table. It works fine when I insert
or update records from QA or directly in the base table.
But, when I create and run a DTS package that inserts rows into the base
table, the TRIGGER DOESN'T FIRE!
Please give me any suggestions how is this possible and how to prevent it.
Regards, Tanja

 
 
 

trigger does not fire when inserting via DTS

Post by Tibor Karasz » Fri, 23 Mar 2001 00:20:42


Tanja,

Edit the DTS task and uncheck the "Bulk Insert" check box under the Advanced folder
(I'm not 100% on the names, but I'm sure that you'll find it). Note that this will
affect performance of the import, of course.

--
Tibor Karaszi, SQL Server MVP
FAQ from Neil at: http://www.sqlserverfaq.com
Please reply to the newsgroup only, not by email.


> Hi,
> I have written a triger on a base table that inserts changed and inserted
> rows from the base table into a history table. It works fine when I insert
> or update records from QA or directly in the base table.
> But, when I create and run a DTS package that inserts rows into the base
> table, the TRIGGER DOESN'T FIRE!
> Please give me any suggestions how is this possible and how to prevent it.
> Regards, Tanja



 
 
 

trigger does not fire when inserting via DTS

Post by Alla » Fri, 23 Mar 2001 00:29:59


How is the data inserted in the DTS Package.  Is it via BULK INSERT.  Because of
the limited logging of this action it will bypass triggers as does BCP and
TRUNCATE

Allan

-----Original Message-----

Hi,
I have written a triger on a base table that inserts changed and inserted
rows from the base table into a history table. It works fine when I insert
or update records from QA or directly in the base table.
But, when I create and run a DTS package that inserts rows into the base
table, the TRIGGER DOESN'T FIRE!
Please give me any suggestions how is this possible and how to prevent it.
Regards, Tanja

.

 
 
 

trigger does not fire when inserting via DTS

Post by Tanj » Fri, 23 Mar 2001 22:21:16


Thanks for the respond, but is it possible to make the triger fire no matter
of the method used to insert the data. I am the owner of the table and the
trigger and I need to define the behaviour of the trigger in any case. The
other users may create and execute  DTS packages or use other methodes of
insertion. Therefore I can not control the other users and for the sake of
consistency and security I need the trigger to fire independantly of the
method used for insertion.
Please give me some further suggestions!
Regards,Tanja


> Hi,
> I have written a triger on a base table that inserts changed and inserted
> rows from the base table into a history table. It works fine when I insert
> or update records from QA or directly in the base table.
> But, when I create and run a DTS package that inserts rows into the base
> table, the TRIGGER DOESN'T FIRE!
> Please give me any suggestions how is this possible and how to prevent it.
> Regards, Tanja


 
 
 

1. trigger does not fire when inserting via DTS

Hi,
I have written a triger on a base table that inserts changed and inserted
rows from the base table into a history table. It works fine when I insert
or update records from QA or directly in the base table.
But, when I create and run a DTS package that inserts rows into the base
table, the TRIGGER DOESN'T FIRE!
Please give me any suggestions how is this possible and how to prevent it.
Regards, Tanja

2. SQL Server 6.5 suddenly slow

3. Trigger not firing via DTS (slightly educated Newbie - LOL)

4. Quality DBMS Evaluation

5. SQL Server 2000 bug: DTS import does not fire insert trigger

6. FA: Oracle Built-in Packages book from O'Reilly

7. bulk insert not firing insert triggers

8. *= join syntax going away in SQL 2000?

9. trigger do not fire when doing bulk update

10. Trigger trouble - fired via DTS

11. SQL7, DTS, Insert Trigger won't fire

12. Bcp Not firing Insert Trigger

13. Trigger not firing for multiple insert