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
 Transact-SQL (2000)
 Numeric Validation

Author  Topic 

chandrugbhatia
Starting Member

6 Posts

Posted - 2004-06-23 : 10:42:33
A Field i have is always VARCHAR , we always get the numbers in a string format '123456789' , if in any case they send the data as '12344A5B3D' we need to validate before we process. Can you please tell me the select statement to validate this.

Page47
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2004-06-23 : 10:43:59
look up the isnumeric function

Jay White
{0}
Go to Top of Page

raymondpeacock
Constraint Violating Yak Guru

367 Posts

Posted - 2004-06-23 : 10:44:45
Use the ISNUMERIC function. It returns 1 if the variable can be converted as a number and 0 otherwise.


Raymond
Go to Top of Page
   

- Advertisement -