what is a stored procedure and trigger?

Answer Posted / ramesh

stored procedure:

Group of sql statements compiled into single execution plan.

create procedure sp_procedurename
as
begin
begin transaction
select * from table

if @@error=null
commit

else
rollback

end

Trigger
--------

Trigger is a set of sql queries which fire when an event
occurs(delete,update,insert).

in 2005 DDL TRIGGER INTRUDUCED.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different normalization forms?

634


what are the disadvantages of cursors? : Sql server database administration

504


How to restore performance issues and how to check?

1529


How many databases Microsoft SQL server provides?

620


What are the various Operating system files that every SQL server 2005 database has and what is the purpose.

602






Explain about SQL server 2005?

567


Can group by be used without aggregate functions?

494


What is entity data services?

591


What is SQL Azure Data sync?

105


What are acid properties of transaction?

563


What are different types of collation sensitivity?

544


What is the architecture of ms sql reporting service?

532


Explain system functions or built-in functions? What are different types of system functions?

575


What do you mean by sql server agent?

555


Using the customer, and order table in northwind database, please write a query to produce xml?

665