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?
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 |
How to assign new column names in a view?
What are orphan records?
How many index can be created for single table
4 Answers CarrizalSoft Technologies, Verizon,
Can I recover a damaged SQL Server 2008 database with the undamaged .mdb and .ldf files?
is it possible to use a variable in a query with the IN clause (a,b,c..z), without getting quotes or conversion errors?
What security features are available for stored procedure?
What is Extended user-defined?
How many null values we can have in a unique key field in sql server?
What is the use of keyword with encryption. Create a store procedure with encryption?
What command is used to rename the database?
What is the recommended total size of your memory optimized tables?
What is a Lock and let me know Different types of locks?