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 changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

1016


What are trace flags and mention a few common trace flags used with sql server?

1087


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

1137


What is an active database?

1013


as a part of your job, what are the dbcc commands that you commonly use for database maintenance? : Sql server database administration

909


Why use “nolock” in sql server?

1058


What is delete query?

940


How would you choose between a clustered and a non-clustered index?

975


How to execute a sql statement using odbc_exec()?

1141


What is the use of floor function in sql server?

1081


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?

1004


what types of replication are supported in sql server? : Sql server database administration

1046


What is the language structure to add a record to a table?

1025


How does the report manager work in SSRS?

150


Why are you getting errors when creating a new odbc dsn?

1223