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

286 reads

Blogs

The T-SQL Tuesday Corollary

By

T-SQL Tuesday is a fantastic series of blog posts derived from over 130 topics...

How to Import Perfmon Data into a SQL Server for Analysis

By

If you followed the last video, I showed you how to set up windows...

How To Set Up Perfmon for 24×7 Collection

By

I just released a new training video (one of many to be released in...

Read the latest Blogs

Forums

OLAPQueryLog does not work for SSAS Tabular mode

By Tho Le

I running into a problem when I try to setup querylog in SSAS. The...

MasOffer Affiliate m?t hình th?c ki?m ti?n v?i ti?p th? liên k?t

By ngocha97

[/b] MasOffer là m?ng ti?p th? k?t liên r?t l?ng danh ? Vi?t Nam....

Code to auto-update tables on set date

By thetubageek

I am in a project where information is being pulled from a database then...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers