why we use cursor?

Answer Posted / manoj kumar singh

When we want to update row depending on certain criteria. we
will loop through all rows and update data accordingly.
There's where cursors come in to picture.

Is This Answer Correct ?    18 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

603


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

651


Comment,Datatypes are unlimited

1624


What is 3nf normalization form?

561


Do you know data definition language, data control language and data manipulation language?

624






What is a schema in ms sql server 2005?

564


How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?

592


What is the use of floor function in sql server?

544


After removing a table from database, what other related objects have to be dropped explicitly?

553


How to use order by with union operators in ms sql server?

574


Do you know sql server 2008 backup compression?

564


System requirements for sql server 2005 express edition?

567


Please illustrate physical database architecture? : SQL Server Architecture

526


How to return the second 5 rows in ms sql server?

630


Can we add an identity column to decimal datatype?

580