Posts Tagged “WTF”

Spotted in the wild…

This SQL Server function features: A name that doesn’t tell you anything ✔ Comments indicating non-existent functionality ✔ Big sections commented out with no explanation ✔ Using strings for date arithmetic ✔ After much thought I concluded that this code is functionally equivalent to DATEDIFF(MONTH, GETDATE(), @ReportDate), except you can choose a different year or [...]

Read more »