Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Kristy de Don,
See script for further instructions. You can use it as a simple select statement, put it in code, or any other way you see fit. This script is about as basic as it comes.
The getdate() function in the script is only used for example purposes only. Use what ever date you feel like or adjust to use a different input parameter.
Need Automated Script