I have already made a post on SQL SERVER – UDF – Remove Duplicate Chars From ... SET @result='' SELECT @result=@result+min(substring(@string ,number,1)) FROM ( SELECT number FROM master..spt_values WHERE type='p' AND number BETWEEN 1 AND len(@string ...
↧