Technical Article

IsWorkday UDF without a table

While the other methods for calculating holidays ect use a table to store the holidays, this inline UDF goes the opposite route, by returning 1 if the given date is a weekday that also does not fall on a number of holidays.  Examples shown allow for easy extension to other holidays as deemed necessary.

You rated this post out of 5. Change rating

2004-05-02

197 reads

Blogs

SQL Server Quickie #46 – SQL Server on Linux

By

Today I have uploaded SQL Server Quickie #46 to YouTube. This time I’m talking...

Giving a Security Webinar this Wednesday

By

If you haven’t already signed up, on November 29, 2023, at 11 AM Eastern...

Write to backup block blob device failed. Device has reached its limit of allowed blocks.

By

Picture this, you’re happily backing up your database to a Azure blob storage until...

Read the latest Blogs

Forums

Logging SQLExceptions

By Casper101

We have a web front-end which I believe in some cases is throwing unhandled...

An Incomplete Window Definition

By Steve Jones - SSC Editor

Comments posted to this topic are about the item An Incomplete Window Definition

A Lack of Privacy in Smart Cars

By Steve Jones - SSC Editor

Comments posted to this topic are about the item A Lack of Privacy in...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers