I'm trying to add 13 years to a birthdate that's stored as datetime2 using the following syntax and (dateadd(yy,13,isNull(cast(p.birthDTS as datetime),cast('1/1/1950' as datetime)))>=@svcStart)
and I get the Adding a value to a 'datetime' column caused an overflow.
I searched for the max(p.birthDTS) and it returned 1988-10-17 00:00:00.0000000
I got the for @svcStart as 2015-04-08 13:10:49.193
I'm a bit flummoxed. Any help?
jb