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

What are the main sources of data?

601


What are the difference between primary keys and foreign keys?

544


what number files will a information contain in SQL Server? How many forms of information files exist in SQL Server? How many of those files can exist for a single database?

534


What happens when unicode strings concatenate with non-unicode strings?

552


How to filter out duplications in the returning rows in ms sql server?

640






What is 'Join' and explain its various types.

630


What are the restrictions applicable while creating views? : SQL Server Architecture

588


Explain system rowset functions?

560


Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?

546


What is the cpu pressure?

565


What is store procedure? How do they work? When do you use?

515


What is the order by used for?

625


what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

532


Does an index slow down updates on indexed columns?

582


How would you go about developing a ssrs report?

110