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 join query?
What are the main sources of data?
there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration
Explain full-text indexing?
When to use null data driven subscription?
Write a SQL query to delete a table?
How can you manage sql azure security?
write an SQL query to list the employees who joined in the month of January?
What is a trigger and types of a trigger?
Difference between uniqe index and uniqe constraint?
Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?
Tell me about pre-defined functions of sql?
What is the primary use of the model database?
What are sql azure firewall rules?
How many full-text indexes can a table have?