You will need a UDF to do that, but it probably should be done at the application level. The following function is a recursive function which means that it's going to perform even slower than a normal UDF.
[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
SELECT replace(replace(replace(replace(replace(replace(replace(replace(replace(TheColumn,'0',''),'1',''),'2',''),'3',''),'4',''),'5',''),'6',''),'7',''),'8',''),'9','')
WHERE TheColumn LIKE '%[0-9]%'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.