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)
 Function

Author  Topic 

sqlfresher2k7
Aged Yak Warrior

623 Posts

Posted - 2010-08-24 : 10:27:51
How to check for the decimal value..
Like Isnumeric..
I want to check for the decimal value.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-08-24 : 10:40:20

where col not like '%[^0-9.]%'

Madhivanan

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

sqlfresher2k7
Aged Yak Warrior

623 Posts

Posted - 2010-08-24 : 11:12:58
Thanks for reponse..

I got the below error in the function..
Conversion failed when converting the varchar value '48.5' to data type int.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-08-25 : 05:09:45
what is the datatype of col?

Madhivanan

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

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2010-08-25 : 05:13:11
Maybe you should post the complete function code?


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

- Advertisement -