views:

90

answers:

1

Hi, how can I replace special characters in my data files (special characters such as bullet points, percent sign, hyphen etc) ?

Thanks

+1  A: 

You can use T-SQL REPLACE:

REPLACE(FieldWithStars,'*','STAR')

For more than one substitution you could use cascading REPLACE statements.

No clue though about bullet points - but you should be able to replace anything looking for the right escape sequence for that particular character.

JohnIdol
Be aware of the cascading stops at 32. If there are more characters to be replaced you should programm a loop an go thru...
Ice