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
What is a unique key constraint?
Write a SQL command to insert and update only a particular field?
What is xml datatype?
what are defaults? Is there a column to which a default can't be bound? : Sql server database administration
What are the properties of the transactions?
How can you stop stored procedures from recompiling?
What are the different types of collation sensitivity in sql server?
what is bit datatype? : Sql server database administration
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?
how to take backup bcp out for a column in table in sql server?
What are some of the pros and cons of not dropping the sql server builtinadministrators group? : sql server security
Does a full backup include transaction log?
In which format does an image save in SQL Server database ?
What is cursors?
How to return the date part only from a sql server datetime datatype?