Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the disadvantages of cursors? How can you avoid
cursors?

Answer Posted / rahul kumar

A) In cursors each time you fetch a new row it does a round
trip with the database thereby increase network use and time.

B) There is also restriction on select statements that can be
used in cursors

C) It also uses more resources and temporary memory

Cursors can be avoided with the help of careful
implementation of while loop and other set based operations

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read and create .LDC data files which are used by linguatic dictionary.

2588


Why does this query return 0?

1056


What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?

1077


explain detail about ftp in datastage?

2296


Write the fastest query to find out how many rows exist in a table?

1174


What is dbms and its application?

1058


How long can an error message be in raiseerror function?

1047


What is data modeling with example?

1061


Explain the cube operator?

1060


Explain about query and reporting.

2139


What are the 18 schemas?

1193


Explain the rollup operator?

1143


Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

2473


How can you fix a poorly performing query?

1258


You are testing the performance of a query the first time you run the query, the performance is slow. the second time you run the query, the performance is fast. why is this?

1020