• Interests: Reading, Movies, Poker, Web 2.0, Physics, Social Sciences

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: )

292 reads

Blogs

Daily Coping 23 Sept 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Getting Up and Running with Dapr

By

I’ve heard about Dapr a few times from developer friends, but hadn’t really understood...

Data Platform products for Microsoft gaps

By

Microsoft has a ton of data platform-related products, but there are certain areas where...

Read the latest Blogs

Forums

output of stored procedure to text and email text

By skb 44459

i have a stored procedure which outputs data from various table query like below....

needing help casting varchar to decimal

By DaveBriCam

I'm needing to convert some varchar figures to decimal for sums, but can't quite...

Colum Header adding a 1 to the text when downloading?

By jbalbo

Hi, I come across this once in a while, I have a column header...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers