Is there a rule here?
Burton Roberts
"ISNUMERIC returns 1 when the input expression evaluates to a valid integer,
floating point number, money or decimal type; otherwise it returns 0."
Your string can be cast as MONEY therefore ISNUMERIC returns 1.
If you want to test for a string containing only the digits 0-9 then use one
of the following expressions:
PATINDEX('%[^0-9]%',@numstr)=0
@numstr NOT LIKE '%[^0-9]%'
--
David Portas
------------
Please reply only to the newsgroup
--
"David Portas" <REMOVE_BEFORE_R...@acm.org> wrote in message
news:VMmdndKbdsg...@giganews.com...
select cast('1000000,1000000' as money)
Work where:
select cast('100000,100000' as money)
Doesn't?
--
----------------------------------------------------------------------------
-----------
Louis Davidson (dr...@hotmail.com)
Compass Technology Management
Pro SQL Server 2000 Database Design
http://www.apress.com/book/bookDisplay.html?bID=266
Note: Please reply to the newsgroups only unless you are
interested in consulting services. All other replies will be ignored :)
"David Portas" <REMOVE_BEFORE_R...@acm.org> wrote in message
news:VMmdndKbdsg...@giganews.com...
This and other similar restrictions do not seem to be
documented, unfortunately. ;)
SK
--
----------------------------------------------------------------------------
-----------
Louis Davidson (dr...@hotmail.com)
Compass Technology Management
Pro SQL Server 2000 Database Design
http://www.apress.com/book/bookDisplay.html?bID=266
Note: Please reply to the newsgroups only unless you are
interested in consulting services. All other replies will be ignored :)
"Steve Kass" <sk...@drew.edu> wrote in message
news:3FB00E2...@drew.edu...