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

what is the difference between trigger and storedprocedures

Answer Posted / sunny kumar rana

1) A stored procedure can accept parameters while a trigger
cannot.
2) A trigger can’t return any value while stored procedures
depand on condition.
3) A trigger is executed automatically on some event while
a stored procedure needs to be explicitly called.
4) Triggers are used for insertions, update and deletions
on tables while stored procedures are often using
independently in the database.
5) A trigger cannot be written in a stored procedure.
However, the reverse is not possible.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of keys?

1060


Why do we use sqlite?

1025


What is Collation Sensitivity ? What are the various type ?

997


How do I add a primary key to a table?

1079


how to do backup entire database? : Transact sql

1189


How can we make an if statement within a select statement?

1057


What is serial sql?

1038


How much ram can sql express use?

1034


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

1052


What is application trigger?

1048


What is pl sql script?

1074


Advantages and disadvantages of stored procedure?

1165


when MSQL8.0 is in market

2137


what are the authentication modes in sql server? How can it be changed? : Sql dba

1502


define sql insert statement ? : Sql dba

1076