title: Which is better performance wise, C# for loop or cursor(or while loop) in sql?
body: <p>Which will perform better while loop or cursor? 
  After lots of research, I came to know they both are equally bad for performance and may sometime out perform each other based on situation, and should be used only when it is not possible to use set based operation. </p>
  
  <p>Now question is Which is better performance wise, loop in C# or cursor(or while loop) in sql?
  and I searched in web, but found no definitive result...</p>
  
  <p>anybody have any idea?</p>