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 is the datatype of rowid?

500


Explain in details security in SQL azure?

97


Explain rdbms?

596


How to read data in a table with "select" statements?

549


Explain log shipping and mention its advantages.

587






What is table valued function and scalar valued functions?

487


What is enhanced database mirroring in sql server 2008?

508


What are the parts of a function?

517


What is the data type of time?

504


Can one drop a column from a table?

542


What is similarity and difference between truncate and delete in sql?

579


What is difference between standardization and normalization?

518


What do you mean by normalisation?

493


How do users use Report Builder with SQL Server data sources?

119


Tell me what is use of except clause? How it differs from not in clause?

506