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

How to execute the cursor queries with "open" statements?

1175


How do I open a .db file?

1034


Explain the relational database management system (rdbms)?

1084


What are key constraints?

968


What is co-related sub query?

1018


What are user-defined functions (udfs) in sql server?

983


What are the new features of sql server 2008 r2 reporting service?

209


What is the optimization being performed in oracle and SQL Server?

1047


Can you explain what are various ways to enhance the ssrs report?

998


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

1383


What command would you use to create an index?

1051


What is rs.exe utility?

156


How can I track the changes or identify the latest insert-update-delete from a table?

948


How to receive returning result from a query?

1112


What are the advantages dts has over bcp?

997