SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

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)

Return X Day of Month

By Justin Wagner,

Call the function just like a stored procedure to get your date.

Make this call from visual studio within a For Loop to get scheduling dates.

I use this function in conjunction with a .Net control that I created for scheduling recurring events. Users can set events on the Nth day of a given month or from a start date to an end date.


Total article views: 1138 | Views in the last 30 days: 3