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 |
query processing
What is difference between materialized view and view?
What is inline variable assignment?
explain different types of jions with examples briefly?
2 Answers Accenture, Excellence, Zensar,
How do you delete duplicate records in sql server?
How can you tell if a database object is invalid?
what is sql injection in sql server?
What specific conditions database should meet, before you can bulk copy data into it using bcp?
How we can refresh the view?
What command do we use to rename a database?
find the 3rd max salary
What are the advantages of using stored procedures? Please don't simply say compilation time will be saved as they are already complied. Please specify some other advantages.