December 3, 2020 at 2:52 pm
can any one help on ho wto solve the issue
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. IES 10901
December 3, 2020 at 2:56 pm
Can you show us the T-SQL which generated the error, along with the data which caused it? Also, what would your ideal solution be? Return NULL instead, with no error?
December 3, 2020 at 3:23 pm
we are not sure the query as it is getting my tool , may i know what are the reasons of getting this error and any idea to resolve this ?
December 3, 2020 at 3:26 pm
There is data which cannot be converted to a date.
May be something as easy as DMY/MDY/YMD settings if everything is a date.
Maybe one of the values in the table is 'ramyours2003' in which case that will not convert to a date.
Something in the source data is wrong when it wants to be converted to a date, what that is you will need to go and investigate your data.
December 3, 2020 at 6:39 pm
we are not sure the query as it is getting my tool , may i know what are the reasons of getting this error and any idea to resolve this ?
The error message is clear on this. The way to fix it is to find the code that generated the error and take a look at the table/columns being used and check them for non-date-convertable data.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 5, 2020 at 3:48 am
Or you are doing date arithmetic and the resulting value exceeds the range for date/time data type you are using.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply