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 / ajay panchal

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

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

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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are connections to sql server encrypted?

942


How do you delete a trigger?

919


What are the different Topologies in which Replication can be configured?

1120


How to connect to a sql server using odbc_connect()?

1096


How you can change a cross join into an inner join?

912


What is scd (slowly changing dimension)? : sql server analysis services, ssas

953


What is the server name for sql management studio?

949


Tell me what do you mean by an execution plan? Why is it used? How would you view it?

839


What is difference between index and primary key?

1042


How to enable tcp/ip protocol on a sql server?

1094


How to replace the Query Result 'Null Value' with a text ?

974


What is query and its types?

875


What happens if null values are involved in comparison operations?

910


Delete duplicate rows without using rowid.

1492


Give an example of SQL injection attack ?

932