About 60 results
Open links in new tab
  1. SQL Server ISDATE () Function - Can someone explain this?

    Apr 26, 2012 · So I was looking at the documentation for the ISDATE() function in SQL Server and saw this in the examples: SET DATEFORMAT mdy; SELECT ISDATE('15/04/2008'); --Returns 0. SET …

  2. sql - Check if value is date and convert it - Stack Overflow

    May 8, 2013 · I receive data in a certain format. Dates are numeric(8,0). For example 20120101 = YYYYMMDD There exists rows with values like (0,1,2,3,6) in that date field, thus not a date. I want to …

  3. sql - How do I get valid dates, like using the ISDATE function without ...

    0 Good day everyone! I am using the T-SQL ISDATE() function with a date column as argument to filter out bad dates; the problem is the ISDATE function will return zero when it comes across a NULL …

  4. sql server - ISDATE producing error for DATE (datatype) value - Stack ...

    the ISDATE function will return false even if the argument is convertible to a date value, if it's representing a date value before 1753-01-01, or after 9999-12-31. This is because the value range of …

  5. sql server - check if value in column is date, and then do something ...

    I have a column that holds a rejected reason for a person. The value is either something like "Person refused" or "10/18/2012" I'm trying to setup my query to check if the value is a date, then it...

  6. Using case statements with IsDate in a SQL where clause

    SQL is a descriptive language and does not guarantee the order of processing. So, a where clause does not necessarily happen before other processing, even when it is in a subquery or a CTE. However, …

  7. IsDate Function in SQL evaluates invalid dates as valid

    Aug 1, 2012 · In this SQL I am checking if the users have entered dates properly by using IsDate function. Since this is a raw data that hasn't been converted yet, all dates are stored in a varchar …

  8. SQL Server - Value passes ISDATE () but fails to CAST as DATE or ...

    Dec 26, 2018 · SQL Server - Value passes ISDATE () but fails to CAST as DATE or DATETIME Asked 7 years, 1 month ago Modified 1 year ago Viewed 4k times

  9. SQL Server ISDATE() Error - Stack Overflow

    The isDate function expects a text field as an input, not a date field. As Joel C said, if the field is defined as a date field, then the values in that field must be dates.

  10. ISDate in not working as expected in SQL server - Stack Overflow

    Sep 24, 2015 · ERROR: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value. because DATETIME Date range January 1, 1753, through December 31, 9999 in …