Advantages and Disadvantages of Cursor?

Answer Posted / bed singh

1. We can do row vise validation but performance is
slow.
2. Each time we fetch a row from the cursor, it result
a network round trip, where as a normal select statement
query make only one round trip.
3. If the ResultSet is less than 50 or 100 records it
is better to go for implicit cursors. If the result set is
large then you should use explicit cursors. Otherwise it
will put Burdon on CPU.

Is This Answer Correct ?    43 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the disadvantages of primary key and foreign key in SQL?

713


How to create a local temporary stored procedure?

593


Explain security with sql azure?

165


What is an expression in ms sql server?

635


What stored by the model? : sql server database administration

627






How can you list all the columns in a database?

621


How can you fetch alternate records from a table?

623


What is filestream?

648


What are transactions in sql?

630


How to use transact-sql statements to access the database engine?

639


Please differentiate between a local and a global temporary table?

651


What happens if time-only values are provided as date and time literals?

614


What is difference between stored procedure and user defined function?

633


What is attribute relationships, why we need it? : sql server analysis services, ssas

580


What do you mean by data integrity?

671