Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an indexed view?

916


How to list all stored procedures in the current database using ms sql server?

1054


What is difference between order by and group by?

955


What are the new data types are introduced in sql 2000?

859


explain different types of backups avaialabe in sql server? : Sql server database administration

919


what is the Ticketing tool used in Wipro technologies at Bangalore...???

8109


 Explain what is sql override for a source taLle in a mapping?

945


What is precedence constraint?

923


How to list all login names on the ms sql server?

1078


What are different types of raid configurations? : SQL Server Architecture

1003


What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration

1032


What is ms sql server reporting services?

991


What is nonclustered index with included columns ?

905


What is schemabinding a view?

863


How do you create a clustered index?

998