What does this error mean and how can I avoid it?
The datediff function resulted in an overflow. The number of dateparts separating two date/time inst
SQL Server 2016 added DATEDIFF_BIG() which returns bigint.
bigint