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 |
UPDATE statement can on a single table or on the multiple table?
when you create a database how is it stored? : Sql server database administration
What do you understand by integration services in sql server?
can a database be shrunk to 0 bytes, if not, why? : Sql server administration
What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?
What do you know about system database? : SQL Server Architecture
How to Generate a Series of Random Integers With T-SQL?
What is BCNF? How is it better than 2NF & 3NF?
How much memory that we are using in Logshipping Concept?
What is transaction server implicit?
How do database indexes work?
How to create hyperlink from returned sql query ?