Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3598236
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:13:01+00:00 2026-05-18T20:13:01+00:00

Any idea why ISNUMERIC(‘0D0’) = 1 is TRUE in SQL Server 2008? I’m validating

  • 0

Any idea why ISNUMERIC('0D0') = 1 is TRUE in SQL Server 2008?

I’m validating ID numbers from another system, which sometimes contain letters that we don’t want to bring over, but this combination is tripping up the code (the specific ID that it thinks is numeric is “005406257D6”). Downstream we’re doing CONVERT(BIGINT, @val), which is obviously choking when it finds these “D” values.

What special case am I hitting, and how do I account for it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:13:02+00:00Added an answer on May 18, 2026 at 8:13 pm

    Basically, IsNumeric is useless – all it verifies is that the string can be converted to any of the numeric types. In this case, “0D0” can be converted to a float. (I can’t remember the reason, but effectively “D” is a synonym for “E”, and means it’s scientific notation):

    select CONVERT(float,'2D3')
    

    2000

    If you want to verify that it’s just digits, then not @val like '%[^0-9]%' would be a better test. You can improve this further by adding a length check also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any idea why ISNUMERIC('0D0') = 1 is TRUE in SQL Server 2008? I'm validating
Any idea if it's possible to create a procedure in another database using T-SQL
Any idea on how to check whether that list is a subset of another?
Any idea how to return multiple variables from a function in ActionScript 3? Anything
Any idea how to initialize .NET delegate that points to method from 'mixed' class
Any idea why the following query syntax is wrong: SELECT year, sum(profit) FROM BASEDATA
Any idea why this is not working: $result = mysql_query(SELECT cust_name, description from `projects`
Any idea how to resolve this in AnthillPro. I am running the AnthillPro server
any idea how if the following is possible in PHP as a single line
Any idea on how to unit test the views in ASP.NET MVC? I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.