結果 : sql server while loop instead of cursor