Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Deleting unwanted characters in a Phone Number

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-12-06 : 13:15:31
Beth writes "I am trying to change data imported from an outside datasource that has a varchar phone number field left open for individual user input. As expected there are too many variations in the field to work with easily, e.g., some have () around the area code, some have - between sections, some even have text at the end like 'SIS' to indicate a sister's number. How can I replace the existing data in this field with just the numbers and no other characters?"

X002548
Not Just a Number

15586 Posts

Posted - 2005-12-06 : 14:46:21
Couple of ways...but I think Adams is cleaner

http://weblogs.sqlteam.com/brettk/archive/2005/06/22/6328.aspx


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-07 : 01:43:04
Also
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=56713

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -