Is there a more elegant way of doing this. I want to replace repeating blanks with single blanks....
declare @i int set @i=0 while @i <= 20
WHILE (SELECT count(myIDcolumn) from myTable where myTextColumn like '% %') > 0 BEGIN UPDATE myTable SET myTextColumn = REPLACE(myTextColumn ,' ',' ') END