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 are a scheduled jobs or what is a scheduled tasks?
What are the differences between web role and worker role?
What is an sql server agent?
In case you have filters in your report, when filters will be applied in cached report instance?
What are the different index configurations a table can have?
What is co-related sub query?
How will you hide an attribute? : sql server analysis services, ssas
Do you have any idea about the tcl commands?
How to rename databases in ms sql server?
How to edit table in sql server 2017?
List out the different types of locks available in sql server?
What are built in functions?
What is the cartesian product of the table?
you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration
How to provide values to user defined function parameters?