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

Can you roll back the ddl statement in a trigger?

912


What will be the maximum number of index per table?

951


What are the advantages of sql azure?

138


How to create a view with data from multiple tables?

965


What you can do to delete a table without the delete trigger firing?

916


What is the xml datatype?

989


What are the extra roles available in msdb? : sql server security

1076


How do I know if localdb is running?

890


What happens on checkpoint?

966


What is attribute? : sql server analysis services, ssas

978


What does asynchronous call backs means?

1071


What is the difference between a primary key and a unique key? Are they the same?

1009


What is format parameter in ssrs?

136


What is use of attribute hierarchy optimized state? : sql server analysis services, ssas

1007


Explain unique key in sql server?

953