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

Are connections to sql server encrypted?

746


How to remove duplicate rows from table except one?

742


What are the High-Availability solutions in SQL Server and differentiate them briefly?

898


Write an sql query for deleting duplicate rows?

726


How does stuff differ from the replace function?

738






What are a scheduled jobs?

699


How to include date and time values in sql statements?

808


What are the database objects? : SQL Server Architecture

703


How to delete exactly duplicate records from a table?

803


can an order by clause be used in a creation of a view?

882


What is the contrast between sql and mysql?

787


How to maintain a fill factor in existing indexes?

704


What are the main differences between #temp tables and @table variables and which one is preferred?

771


Name some of the open source software that you can use in alternative to SSR?

134


Explain Geography datatype in SQL Server

805