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 |
If we use where clause in the left outer join then how the query would behave/act?
What is merge?
What are the benefits of filtered indexes?
Which command displays the SQL command in the SQL buffer, and then executes it?
What are the benefits and tasks of object explorer? : sql server management studio
Does partitioning improve performance sql server?
What is the basic functions for master, msdb, tempdb databases?
What security features are available for stored procedure?
what is the signification difference of this bit data type between sql 6.5 and later version sql server?
How to run sql server 2005 books online on your local system?
How can I tell if sql server is 32 or 64 bit?
Is sql server difficult to learn?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)