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...

Difference between Triggers and Stored Procedure

Answer Posted / bed singh

1. Triggers can only be implemented on tables or views but
Stored Procedure in independent code that can be specific
to database.

2. Triggers are automatically run but stored procedures are
not automatically run and they have to be called explicitly
by the user.

3. we can write a stored procedure within a trigger but
cannot write a trigger within a stored procedure.

4. Trigger is attached to table or view and is fired only
when an INSERT, UPDATE, and/or DELETE occurs, while a
stored procedure executes at any time when it is called.

Is This Answer Correct ?    75 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to drop an existing user defined function in ms sql server?

1031


What happens if you delete a table that is used by a view?

993


What are the differences between having and where clause.

970


What is hot add cpu in sql server 2008?

935


What is user-defined function? Explain its types i.e. Scalar and inline table value user-defined function?

912


how many clustered indexes can be created on a table? : Sql server database administration

1159


Explain in brief how sql server enhances scalability of the database system?

983


Why do we use functions?

918


What is etl - extraction, transformation, and loading?

920


How do you handle datasets larger than 50 gb?

162


How to connect to SQL Azure Database by using sqlcmd?

136


Is mysql the same as sql server?

995


What is surrogate key? : sql server analysis services, ssas

1112


When is the use of update_statistics command?

1012


How to make conditional sum in ssrs?

177