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
How to specify the collation for a character data type in ms sql server?
what are acid properties? : Sql server database administration
Can we insert data into a view?
How to define the name and server for a new dsn?
Explain trigger and trigger types?
How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?
How should i optimize the time for execution of stored procedure having single input and many output from the different tables?
Explain primary key?
Which joins are sql server default?
How to rebuild all indexes on a single table?
What is difference between order by and group by?
What is the current limitation of the size of SQL Azure DB?
What are extended events in sql server?
Explain “not null constraint” in sql server?
What are the advantages of using third-party tools?