In a cursor you load all the records into memory and run through the records running a command for each one.
In a while loop you run the same command over and over until a condition it met which then terminates the loop.
Last Wiki Answer Submitted: May 7, 2008 6:46 pm by Denny Cherry64,550 pts.
All Answer Wiki Contributors: Denny Cherry64,550 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.