Page 1 of 1

Special Charcters

Posted: Thu Feb 25, 2010 1:47 pm
by ppp
I have an input column called the Telephone field which is varchar. It has data such as below:

Telephone

(999) 999 9999
999-999-9999
999 999 9999
999/9999999
999*9999999

How can I strip off all these special characters and just keep the numbers? I want a format like 9999999999.
I know I can strip the white space off but how should I deal with the other characters?
[/u]

Posted: Thu Feb 25, 2010 2:12 pm
by DSguru2B
Use the Convert() function to convert anything other than a number to a an empty space.

Posted: Thu Feb 25, 2010 2:45 pm
by ppp
Thank you so much. It worked.