Number of Weekdays between two dates - Set Based

Inspired by a post here at SQLServerCentral, I wrote this function to calculate the number of days between two dates that are weekdays. In order to achieve this I used a common SQL table that contains a sequence of number for 1 to X. This was used as an input to the datediff function, and […]

2004-12-24 (first published: )

285 reads

Blogs

Quick Blog: Making the Power BI PowerShell cmdlets easier to use

By

One of the top reasons I love PowerShell so much is that from the...

Trouble writing? Join the club. #JustWriteTech

By

I was talking with  a couple of excellent SQL people* recently, and we were bemoaning...

Check Query Progress with Live Query Stats

By

This is something I touched on back in 2017 a little after the Live...

Read the latest Blogs

Forums

Is Data the Future of the Vibrant Web?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Is Data the Future of...

Need some advice as to how convert reports to use embedded data

By Rod at work

I've been using SSRS, on and off, for about 10 years. I wouldn't call...

Index maintenance Ola script

By vsamantha35

Hi All, Does Ola Hallengren index script takes care of de-fragmenting HEAP tables as...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers