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
SELECT 'starting...' --sets @@rowcount WHILE @@rowcount <> 0 update myTable set myTextColumn = replace(myTextColumn, ' ', ' ') where myTextColumn like '% %'