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 2005 Forums
 Transact-SQL (2005)
 Remove non-alpha characters function

Author  Topic 

dnf999
Constraint Violating Yak Guru

253 Posts

Posted - 2008-09-15 : 05:37:23
Hi

Does anybody have a or know of a function to remove non-alpha characters? i.e. leaving only A-Z characters in the string.


Thanks!!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-15 : 06:01:39
You can tweak the below logic to adapt to your scenario

http://sqlblogcasts.com/blogs/madhivanan/archive/2007/12/18/extract-only-numbers-from-a-string.aspx
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-15 : 06:03:53
Yes. There are examples of those functions in the Script Library.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -