Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Trigger problem on DTS insert

Author  Topic 

diwakar_m
Starting Member

19 Posts

Posted - 2008-03-27 : 04:29:33
I have a set of tables into which a DTS task imports data.
I have created a trigger which activates on DTS insert and executes a bunch of stored procedures.

Now my problem is, the trigger is activated for every row that is being inserted by the DTS task.
But what i want is the trigger should be activated only once.i.e.,At the end of data import and not for every inserted row.

Is there any way i can accomplish this task?

NOTE : The source of data is Excel.

Thanks in advance.

nr
SQLTeam MVY

12543 Posts

Posted - 2008-03-27 : 05:53:45
Can you make it a stored procedure and execute it from the package after the insert?

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -