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

Why use view instead of a table?

1001


Why use identity in sql server?

1168


How to create a dynamic cursor with the dynamic option?

1103


What new data source types were added in ssrs 2014?

169


Can we create clustered index on composite key?

1168


What is normalization according to you and explain its different levels?

993


How to defragment table indexes?

1036


Explain syntax for viewing, dropping and disabling triggers?

996


What is sql server database?

1078


Explain what is the purpose of sql profiler in sql server?

1126


Explain the properties of subqueries in sql server?

1137


Explain mixed authentication mode of sql server?

1115


What is the difference between ‘having’ clause and a ‘where’ clause?

1083


What is delete query?

990


How to transfer a table from one schema to another?

1045