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

1 01 101 01010

0 Answers  


What are the system database in sql server 2008?

0 Answers  


Explain the difference between HTTP and HTTPS in database?

0 Answers   Wipro,


What are truncate options available in sql server? : sql server database administration

0 Answers  


What is the difference between set and select?

0 Answers  






What is scan table/view and seek table/view when its occurs? : sql server database administration

0 Answers  


Explain contrast amongst grouped and non-bunched records?

0 Answers  


how would you troubleshoot blocking? : Sql server database administration

0 Answers  


What do you mean by an execution plan?

0 Answers  


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

0 Answers   Facebook,


How to defragment table indexes?

0 Answers  


What is table value parameters (tvp)?

0 Answers  


Categories