I need the deep explanation for the queries that are not using the temporary tables in SQL Server 2008 and without using the cursors.
Thanks,
Vara Prasad.M
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You want to use a variable table with an identity and iterate through it (also known as RBAR [Row By Agonizing Row]) over using a cursor for several reasons:
more with a cursor such as moving
backwards and updating but you’re
accessing your table
data in memory which is faster than
using a physical table
many times by forgetting to
deallocate my cursor