explain store procedure and trigger
Answers were Sorted based on User's Feedback
Answer / deepak baldia
A stored procedure is a set of SQL commands that has been
compiled and stored on the database server.
A trigger is a special kind of stored procedure that is
invoked whenever an attempt is made to modify the data in
the table it protects. Modifications to the table are made
using INSERT,UPDATE,OR DELETE statements.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / michael jerold
sp means to execute set of quries in single sp.and we can
call manually.
Trigger means dml operation happens the event will fire
automatically. we can not call manually.
Is This Answer Correct ? | 2 Yes | 0 No |
stored procedure is collection of sql query/command.it is database object.it stored in databse and uses for validation data and data access from data source. but it has some disadvantage like this .if more than one SP uses same server .
server performance down and once create and use many times.
trigger is sql procedure that initiates action when database modification query perform.it is automatically create .it is not executed like stored procedure .it is also execute stored procedure . when data modification sql command executed then action performed by trigger
Is This Answer Correct ? | 0 Yes | 0 No |
How does asp page work?
What is the difference between login controls and forms authentication?
Which template must you provide, in order to display data in a Repeater control?
What is session and application variable in asp net?
What is localization and Globalization?
what are the types of ASP objects ?
Have you used microsoft dataaccess blocks and Exception blocks?
What is the namespace to create thread in .net?
What is difference between or and orelse?
what are debugging types in .net?
how we deploy the asp.net 2.0 application
Webconfig file is cofiguration of server or browser?