There is a trigger defined for INSERT operations on a
table, in an OLTP system. The trigger is written to
instantiate a COM object and pass the newly insterted rows
to it for some custom processing. What do you think of this
implementation? Can this be implemented better?



There is a trigger defined for INSERT operations on a table, in an OLTP system. The trigger is wri..

Answer / swapna

Instantiating COM objects is a time consuming process and
since you are doing it from within a trigger, it slows down
the data insertion process. Same is the case with sending
emails from triggers.


This scenario can be better implemented by logging all the
necessary data into a separate table, and have a job which
periodically checks this table and does the needful.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

How do we rollback the table data in SQL Server

3 Answers  


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

1 Answers  


What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

1 Answers  


How many types of subqueries are there in sql server?

1 Answers  


What are different types of statement?

1 Answers  


do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

1 Answers  


How sql server executes a statement with nested subqueries?

1 Answers  


What are the difference between primary keys and foreign keys?

1 Answers  


What is the difference between NOROW and LOCKROW?

1 Answers   Accenture, Honeywell, Satyam,


How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?

1 Answers  


What is etl - extraction, transformation, and loading?

1 Answers  


Explain trigger and trigger types?

1 Answers  


Categories