Possible Duplicate:
What is wrong with Cursors ?
Why we say cursor will affect the performance. Even we use some other looping instead of cursors it works similarly right? Please advise
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.
If your SQL is designed to work RBAR (Row-by-agonizing-row) then a Loop or Cursor will take a long time.
SQL is best with set data, work with sets instead of rows and your performance will generally increase.
If you rephrase your question or post some example SQL, we might be able to help more!