I came across an article on SQL Server Central written by Claudio Silva (blog/twitter) discussing that you can’t do arithmetic operations on DateTime2 like you can with DateTime.
For example:
Old Way
You need to do something like this:
I came across an article on SQL Server Central written by Claudio Silva (blog/twitter) discussing that you can’t do arithmetic operations on DateTime2 like you can with DateTime.
For example:
Old Way
You need to do something like this: