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 a stored procedure and trigger?

Answer Posted / shashi kishor prasad

1.Stored Procedures are Pre-compiled functions that needs to
be called but Triggers are event driven and can't be called
explicitly like stored procedures

2.Stored procedures can take arguments but Triggers dont
take arguments.

3.Stored procedures cant get executed unless they are called
by by the calling program but Triggers gets fired as soon as
an event for which it has been created takes place.

4. Stored procedures can work on the database and values it
has been assigned but Triggers can work on db other than that.

5.Stored Procedures are used to make the execution faster
and to prevent from sql injections to some extent but
Triggers are used to achieve different tasks on occurrence
of an event like insert update and delete on a table.

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 tablesample?

1182


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

1064


How to transfer data from a cursor to variables with a "fetch" statement?

1148


What is #table in sql server?

1102


Explain trigger classes i.e. Instead of and after trigger?

920


How sql server enhances scalability of the database system?

1319


Explain the creation and execution of a user-defined function in the sql server?

1113


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

1455


Tell me something about security and sql azure?

116


What is difference between unique and primary key?

972


Give a example to search fr a string in all stored procedure in sql server.

1066


How to add a new dsn with the odbc driver for sql server?

1115


What is a partition function in sql server?

1220


What method is used by the Command classes to execute SQL statements that return single values?

1115


Define normalisation?

1155