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 retrive only second row from table in sql server 2000?
How to insert new line characters into strings?
What is a Stored Procedure?
Is it possible to create tables in stored procedures using a variable for the table name?
How to avoid cursors?
3 Answers CarrizalSoft Technologies, HP,
How you can get a list of all the table constraints in a database? : Sql server administration
What happens if null values are involved in boolean operations?
1. What is CUBE Operator? 2. what are the new data types are available in sql server 2008? 3. Inisde a nested queries, how many subqueries u can have?
Does sql server use java?
wat will be the sql query to extract only last 3 records from table supose table hving thousands for records
When would you use a before or after trigger?
What is Index ? Explain its Types?