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 a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?

1008


Why normalization is used?

1001


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

1053


What is mapping schema?

1014


Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?

1048


What is federation member?

114


What is Lock table in SQL?

1453


as a part of your job, what are the dbcc commands that you commonly use for database maintenance? : Sql server database administration

894


How do I find information about the install locations for the various instances running on a computer?

1070


What is table valued function and scalar valued functions?

1067


Write an sql query to find first weekday of the month?

908


Explain differences between web edition and business edition?

119


Explain primary key?

951


What is subquery? Explain the properties of a subquery?

972


Explain table valued parameters in sql server? Why tvp used?

1008