Tag: Loops

  • Loop over dates in SQL Server

    Loop over dates in SQL Server

    I’ve written the script below at least once a month, for either reports, or working with large data sets. Rather than reinventing the wheel, I’m posting my code here and to GitHub for everyone to see. The script expects two date parameters, a start date and an overall end date. The script will then assign…