Advantages and Disadvantages of Cursor?

Answer Posted / sandeep singh

Advantages:
Cursors are somewhat like Pointers of Oracle, Oracle executes a query and assign some name to that memory location, which is known as Cursor.
Cursors are used for storing data temperarorily.
Cursors are used for storing, managing and retrieving data.
Cursors stores in the RAM so the data access and retrieval is fast.

Disadvantage:
No such disadvantage. Only thing is that rather than storing data in an intermediate variable and fetching it one by one via cursor and then processing it sequentially, we can use Collections. By using collections, we can pass the bundle of Data at once.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will the writetext statement activate a trigger?

754


what are the different stages of Report Processing?

111


Explain foreign key in sql server?

759


what is the maximum size of a row? : Sql server database administration

715


Explain table valued parameters in sql server? Why tvp used?

740


What is implicit mode in sql server?

750


What is meant by datasource?

691


Using the customer, and order table in northwind database, please write a query to produce xml?

858


What is a field name?

714


Where sql server usernames and passwords are stored in a sql server?

670


What is sql or structured query language?

880


Explain raiserror in sql server?

766


What are user-defined functions (udfs) in sql server?

738


How to list all triggers in the database with sys.triggers in ms sql server?

762


Tell me extended events in sql server 2008?

755