This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

sample_datetime_usages.sql

This is an example script from my toolkit that helps me to quickly review the various different ways of performing date math in sql server.

Demo available here