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 is public role in sql server?

528


What is the most common type of join?

520


What are the differences between sql server and mysql.

524


What is replace and stuff function in sql server?

559


but what if you have to create a database with two filegroups, one on drive c and the other on drive d with log on drive e with an initial size of 600 mb and with a growth factor of 15%? : Sql server database administration

525






Explain an automatic checkpoint

556


How to modify an existing stored procedure in ms sql server?

521


What are the advantages of log shipping?

553


How to enter binary string literals in ms sql server?

574


What is mean by candidate key?

530


What stored by the master? : sql server database administration

571


what changed between the previous version of sql server and the current version? : Sql server database administration

513


How to return the top 5 rows from a select query in ms sql server?

583


Does dbcc checkdb requires db to be in single_user mode? : sql server database administration

514


Explain how to send email from sql database?

554