Recently, I encountered an interesting error while using SQL Server in a Docker container. The error was a Microsoft.Data.SqlClient.SqlException
with the message “The datediff function resulted in an overflow. The number of dateparts separating two date/time instances is too large.”