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

(1)

You rated this post out of 5. Change rating

2005-06-13 (first published: )

287 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, […]

(2)

You rated this post out of 5. Change rating

2005-06-03

410 reads

Blogs

PASS Keynote Shots

By

Rodney Kidd took some great shots of the keynote and published an album here:...

Microsoft AI Red Teaming Course

By

here is the compiled video of the Red Teaming course Microsoft put together.

What’s New at AWS re:Invent 2025 – Day2 Highlights

By

Day 2 kicked off with Matt Garman’s keynote, and he opened with a quote...

Read the latest Blogs

Forums

Veeam Backup DAG issue. Access to availability group is not permitted.

By goodtimecharlie

Hi all,   Has anyone encountered an issue whereby using a distributed availability group...

need to kill long running SPIDs

By rajemessage 14195

hi, i have seen in my server sometimes some SPIDs get stuck. so we...

Improving update statistics process for 6 big tables

By jellybean

Recently I was asked to investigate the update statistics process on a particular database....

Visit the forum

Question of the Day

Adding a Lot of Seconds

When does this code work and when does it fail?

DECLARE @BaseDate DATETIME = '1900-01-01';

SELECT DATEADD(SECOND, 2147483648, @BaseDate) AS [MaxIntSecondsAdded];

See possible answers