Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove characters from a string
Message
 
 
To
07/07/2014 11:53:20
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01603290
Message ID:
01603291
Views:
61
>Hi
>
>Any suggestions on the best way to return a string with all the non numeric characters removed in SQL2008 R2
>
>Thanks
>
>Nick

Use 10 nested REPLACE statements.

Actually, I misread. I thought you wanted to remove numbers and keep everything else.

If you want to remove all except numbers, check

http://blogs.lessthandot.com/index.php/datamgmt/datadesign/extracting-numbers-with-sql-server/
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform