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)
 String to Integer

Author  Topic 

klegrand
Starting Member

29 Posts

Posted - 2007-04-13 : 09:17:13

Is there a specific command to get the value out of a string ?
example :
string = 'abcdef123abderf'

I want to get the '123' value back as result

Thanks,
Kurt

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-04-13 : 09:20:40
See this topic http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=79083

select dbo.fnFilterString('abcdef123abderf', '[0-9]', '')


Did it help?



Peter Larsson
Helsingborg, Sweden
Go to Top of Page

klegrand
Starting Member

29 Posts

Posted - 2007-04-13 : 09:25:31
Peter Thanks a lot for the quick response ....

This will sure help...
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-04-13 : 12:41:09
Also refer
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=56713

Madhivanan

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

- Advertisement -