|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
BUG - ISNUMERIC('.') = 1
http://www.aspfaq.com/2390
Show quote "Howard Swope" <swopehATgigamotoDOTcom> wrote in message
news:eockploLGHA.3100@tk2msftngp13.phx.gbl... > ISNUMERIC('.') returns a value of 1. > > This is bad, right? > > Howard > > Howard Swope wrote:
> ISNUMERIC('.') returns a value of 1. Try this to see why isnumeric returns 1 for this string:> > This is bad, right? > select cast('.' as money) -- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup. Howard Swope (swopehATgigamotoDOTcom) writes:
> ISNUMERIC('.') returns a value of 1. Yes isnumeric() is bad. It returns 1 if the value can be converted to > > This is bad, right? any numeric data type. Which is quite a useles piece of information. It's not a bug though. -- Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx |
|||||||||||||||||||||||