Advantages and Disadvantages of Cursor?

Answer Posted / hiral bhatt

Dear All,

Cursor, its an object in SQL Server and the main advantages
of cursor is that whenevr we need to fetch records in row
by row Manner..

But using cursor, it itself is not a good concept, we have
another alternate for cursor like Temp Table.

Regards
Hiral Bhatt
Sr. Software Engg.

Is This Answer Correct ?    43 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scheduled job and how to create it?

733


What are the features of Embedded SQL

866


What is the syntax for encrypting a column in SQL Server?

779


Explain syntax for dropping triggers?

708


How do I view a script in sql server?

738


How to get @@error and @@rowcount at the same time?

779


A trigger can reference objects outside the current database? State true or false.

754


how you can configure a running aggregate in SSRS?

137


What is parameterized reports in ssrs ?

125


Explain mixed authentication mode of sql server?

729


What are the main differences between #temp tables and @table variables and which one is preferred?

782


What are the different types of locks in the database?

657


What is side by side migration in sql server?

762


What are “lock” hints?

768


What are cursors stored procedures and triggers?

691