What is cursor ? And what is difference between Trigger ?

Answer Posted / sanjay kumar dinda

Cursor is a database object used by applications to
manipulate data in a set on a row-by-row basis, instead of
the typical SQL commands that operate on all the rows in
the set at one time.


Trigger is a database object invoked automatically when any
event occured.
These aevents are
Delete, Insert, Update etc....

SQL server store the intermediate data into to dummy table
INSERTED and DELETED...

At the time of insert operation SQL Server STores inserted
rows into the INSERTED table and at the time of delete or
update SQL Server stores the information into DELETED dummy
table

Is This Answer Correct ?    19 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What gets stored inside msdb database?

769


What do you understand by coalesce in sql server?

501


Explain hostprotectionattribute in sql server 2005?

601


How to rebuild the master database?

581


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

658






How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

602


What is lookup override?

590


what is a self join? Explain it with an example? : Sql server database administration

502


What is optimistic concurrency?

567


What is tabulation?

562


What is the temp table?

545


What are the difference between primary keys and foreign keys?

544


What is raid? : SQL Server Architecture

600


What is scheduled job and how to create it?

554


What are the advantages of passing name-value pairs as parameters?

663