How to avoid cursors?

Answer Posted / veeresh kethari

1.By using case.. set,we can avoid the cursors

2.By using temporary tables/table variables/CTE
with while loop we can avoid cursor in the transaction.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me about the approaches which you used to counter the DI problems.

771


Please explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?

506


What is serializable?

675


What are the differences between left join and inner join in sql server?

594


What will be the maximum number of indexes per table?

543






Why are you getting errors when creating a new odbc dsn?

599


Define full outer join?

527


How to use go command in "sqlcmd"?

652


How many types of database relationship in sql server?

571


Do you know what are acid properties?

580


what is package and it uses and how can u call a package

1569


How to modify existing triggers using "alter trigger"?

543


How to name query output columns in ms sql server?

542


Explain the ways to controlling cursor behavior?

552


What is field with example?

523