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

What is the tcp/ip port on which sql server runs?

1070


How to copy the tables, schema and views from one sql server to another?

995


What is the difference in accessing db between sql server vs sql azure?

174


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

940


What happens if you insert a duplicate key for the primary key column in ms sql server?

939


Why we need sql server?

919


How we create SQL Server 2005 Reporting Services ? Give me Sample

1945


What is an expression in ms sql server?

1022


Explain different types of index?

994


Explain what is the function of sql server agent windows service?

949


How to create a simple stored procedure in ms sql server?

982


What is dirty read?

1047


What is the difference between update lock and exclusive lock?

920


What is a group function explain with an example?

944


do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

932