Home Forums SQL Server 2005 T-SQL (SS2K5) Conversion failed when converting datetime from character string - Error.... RE: Conversion failed when converting datetime from character string - Error....

  • You can look for rows where there may be invalid dates by using the IsDate function in TSQL.

    Select * from MyTable where IsDate(MyColumn) = 0

    Note, however, that there are exceptions where IsDate returns true (1) even though you might not think of it as a valid date. For example:

    Select IsDate('2010')

    returns '1'.

    Rob Schripsema
    Propack, Inc.