While+ Loop+ On+ Temp+ Table+ In+ Sql+ Server