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)

You rated this post out of 5. Change rating

2005-06-13 (first published: )

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

You rated this post out of 5. Change rating

2005-06-03

405 reads

Blogs

MVP No more, But It’s OK

By

Embracing Limitations: Finding Strength and Purpose in Hard Times For four years, I was...

A New Word: Fitching

By

fitching – v. intr. compulsively turning away from works of art you find frustratingly,...

Copilot in Microsoft Fabric

By

Microsoft Copilot is an app that uses AI to help you find information, create content,...

Read the latest Blogs

Forums

SQL Saturday Pittsburgh 2024 (#1094) - Call for speakers and other event details

By Jeff Moden

Please see the following link. https://sqlsaturday.com/2024-10-12-sqlsaturday1094/ Note that the "Call for Speakers" is in-progress...

SQL Saturday Pittsburgh 2024 (#1094) - Call for speakers and other event details

By Jeff Moden

Please see the following link. https://sqlsaturday.com/2024-10-12-sqlsaturday1094/ Note that the "Call for Speakers" is in-progress...

what are the software' required for sqlserver dba in laptop to install

By naga.rohitkumar

HI Team, what are the software's required for sqlserver dba in laptop to install...

Visit the forum

Question of the Day

What's Wrong with this Table?

What's wrong with this code and causes an error?

CREATE TABLE Customer
(
    CustomerID INT NULL,
    FirstName NVARCHAR(50) NOT NULL,
    LastName NVARCHAR(50) NULL,
    Email NVARCHAR(100) NOT NULL,
CONSTRAINT CustomerPK PRIMARY KEY (CustomerID, LastName)
);


See possible answers