IsDateAHoliday UDF

This is a User Defined Function that returns a 1 if date is a holiday else, it returns a 0.The holidays are:New years Day, MLK Day, Presidents Day, Memorial Day, Independance Day, Labor Day, Columbus Day, Veterans Day, Christmas Eve and Christmas Day

4 (1)

2005-06-13 (first published: )

276 reads

IsDateAHoliday UDF **NEW**

This is a replacement script for the first IsDateAHoliday. The first one was too slow and inefficient. This one is much better. Enjoy.IsDateAHoliday is a User Defined Function that accepts a date and returns a 1 if date is a national holiday and returns a 0 otherwise.The holidays are:New years Day, MLK Day, Presidents Day, […]

3.5 (2)

2005-06-03

401 reads

Blogs

How I passed the 70-761 certification exam

By

FUN FACT: I have been a Microsoft Certified Professional for SQL Server for over...

Azure Storage tips

By

As a followup to my blog post Azure Data Lake Store Gen2 is GA,...

Managing Agent Jobs on Availability Group Servers

By

As always, the scripts in this post can also be found on our Git...

Read the latest Blogs

Forums

What Write Ahead Logging Is and Why It Matters

By Kendra Little

Comments posted to this topic are about the item What Write Ahead Logging Is...

SSAS Error: Duplicate attribute key found when processing

By aveek22

Comments posted to this topic are about the item SSAS Error: Duplicate attribute key...

Using Calendars and Dates in Power BI

By Additional Articles

Comments posted to this topic are about the item Using Calendars and Dates in...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers