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

How do I find the size of a sql server database?

651


Can the query output be sorted by multiple columns in ms sql server?

726


Why are sql functions used?

771


Should you normalize audio?

710


what information is maintained within the msdb database? : Sql server administration

698






What is database architecture? : SQL Server Architecture

737


When would you use a before or after trigger?

660


What is acid db?

669


When does a workload on SQL Azure get throttled?

127


What is autocommit mode in sql server?

708


How to test odbc dsn connection settings?

705


What is a table called, if it has neither cluster nor non-cluster index? What is it used for?

800


What is the bookmark lookup and rid lookup?

751


What is plan freezing?

724


List some advantages and disadvantages of stored procedure?

738