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
What are trace flags and mention a few common trace flags used with sql server?
How do I view a trc file?
How many categories of data types used by sql server?
What are different types of data sources?
What is sql injection? How to protect against sql injection attack?
Explain indexed views?
What is report rendering ?
what do you understand by change data capture?
How to modify existing triggers using "alter trigger"?
What is the recursive stored procedure in sql server?
What is inline table-value user-defined function?
How many cores do I need for sql server 2016?
Explain the different types of joins?
Explain about protocol layer present in SQL server?
What is star, snowflake and star flake schema? : sql server analysis services, ssas