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

How do you make a trace?

752


How to check if stored procedure is running in sql server?

645


can SSRS reports Cache results?

127


What area unit the various kinds of info compression introduced in sql server 2008?

748


What are the diifferences between the ms sql server vs mysql?

881






What is difference between group by and having?

715


How do I run a trace in sql server?

681


What is bcnf normalization form?

845


What is triggers in ms sql server?

798


how can you check the level of fragmentation on a table? : Sql server administration

705


Can you explain what are various ways to enhance the ssrs report?

761


you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?

790


Where are SQL server users names and passwords are stored in sql server?

897


Explain how dts is used to extract, transform and consolidate data?

760


how you can list all the tables in a database?

734