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
What is temporary table in sql server? Why we use temp table?
What is isnull() operator?
Where to find ntwdblib.dll version 2000.80.194.0?
What is the difference between index seek vs. Index scan?
Explain a join?
what do you understand by change data capture?
What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?
How you provide security to cube? : sql server analysis services, ssas
what is a default tcp/ip socket assigned for sql server? : Sql server database administration
How many categories of data types used by sql server?
What is the name of the system variable that returns the number of rows affected by a SQL statement?
How to use subqueries with the in operators in ms sql server?
Where are sql server user names and passwords stored in sql server?
What is the difference between Clustered and Non-Clustered Index?
Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?