Garry (vadim@viii.ntu-kpi.kiev.ua) writes:
> In this situation you can use ISNUMERIC function.
No, you can never use the isnumeric() function, because it is
virtually useless. isnumeric() tells you that a string can be
converted to some numeric data type, but you can find out which. A
string that can be converted to money may not convert to float or
vice versa.
For test of a positive integer number, this is the way to do:
@x NOT LIKE '%[^0-9]%'
--
Erland Sommarskog, SQL Server MVP,
esquel@sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp