Is it a good idea to use while loop instead of a cursor? What are the advantages/disadvantages of cursors?
Some disadvantages of cursors are here
Then there is also this (Actually a very interesting problem called - "Halloween problem")