I am doing a clean up of a database but I am getting this error. I was to delete data less than 6 months old.
Query:
Delete from dbo.Jobs
where dtpDate <= '2016-04-27 15:23:00.000'
Error:
Msg 242, Level 16, State 3, Line 1
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
The type is datetime