About 732,000 results
Open links in new tab
  1. t sql - Check if a varchar is a number - Stack Overflow

    Dec 16, 2019 · Is there an easy way to figure out if a varchar is a number? Examples: abc123 --> no number 123 --> yes, its a number

  2. SQL Server's ISNUMERIC function - Stack Overflow

    Aug 21, 2015 · ISNUMERIC is a secret Microsoft joke function, made on April 1st, 1999, but someone forgot to remove it for RTM. Then for the release of SQL Server 2005, another MS …

  3. sql server - CAST and IsNumeric - Stack Overflow

    Select Cast(Data as bigint) From @Temp Where IsNumeric(Data) = 1 And Data Is Not NULL There is a trick you can use with IsNumeric so that it returns 0 for numbers with scientific …

  4. Efficient ISNUMERIC () replacements on SQL Server?

    Dec 1, 2015 · Any recommendations on good, efficient replacements for ISNUMERIC(). Obviously there really need to be variations for int, money, etc., but what are people using (preferably in …

  5. t sql - SQL Server ISNUMERIC () Clarification - Stack Overflow

    Nov 9, 2017 · ISNUMERIC returns 1 for some characters that are not numbers, such as plus (+), minus (-), and valid currency symbols such as the dollar sign ($). For a complete list of …

  6. sql server - Using IF IsNumeric as Argument - Stack Overflow

    Feb 15, 2012 · END There is no way in SQL Server to avoid the comparison to 1, as in your second example. Also as an aside you should be aware of the weaknesses of ISNUMERIC() - …

  7. SQL - select * from X WHERE (if value is numeric, else ...)

    Sep 6, 2010 · IF ISNUMERIC(@parameter_value) = 1 BEGIN SELECT x.* FROM TABLE x WHERE x.id = @parameter_value END ELSE BEGIN SELECT x.* FROM TABLE x WHERE …

  8. sql server - confusing behavior with case and isnumeric - Stack …

    Apr 12, 2016 · Isnumeric function should be return of this value true, and convert function should not convert value into real because space in value. find data of this type in your column like …

  9. sql server - SQL IsNumeric not working - Stack Overflow

    Jun 3, 2015 · IsNumeric is a problem child -- SQL 2012 and later has TRY_CAST and TRY_CONVERT If you're on an earlier version then you can write a function that'll convert to a …

  10. SQL Server is not numeric and not null - Stack Overflow

    Dec 6, 2016 · SELECT CustomerName FROM CUSTOMER_TABLE WHERE CustomerId IS NOT NULL AND ISNUMERIC(CustomerName) = 0 ISNUMERIC (expr.) determines whether …