Technical Article

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

280 reads

Technical Article

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

403 reads

Blogs

Be careful with table updates

By

The dire warning in the subject line is not meant to scare you. Rather,...

Daily Coping 1 Dec 2021

By

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

Building a pacemaker cluster to deploy a SQL Server availability group in Azure

By

There are new Ubuntu Pro 20.04 images available in the Azure marketplace with SQL...

Read the latest Blogs

Forums

Help with Column Visibility Expressions

By Jeffs1977

I have a parameter in my report labeled as PaySource. PaySource has 3 values...

SQL Server and CloudStrike

By Leo.Miller

Has anyone had issues with CloudStrike Anti-Virus on their SQL Servers? I've had a...

Table Date field format

By shank-130731

I created a date field [Datte] in SQL v2008. I then link with MS...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers