Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Create bank holidays table

By Scott Thomas, AAP,

There are ten holidays that are observed by the Federal Reserve.  Although some bank branches may be open, the Fed will be closed.  When they are closed, ACH transactions like direct deposit and automatic debits do not occur.  This impacts things like payroll or accounts receivable.

Some holidays always occur on a business day, like Memorial Day.  What happens if a holiday like July 4 falls on a weekend?  If a holiday falls on a Saturday, the Federal Reserve will be open for business as usual on the Friday before.  But if a holiday falls on Sunday, they will be closed on the following Monday. 

This script will create a new table, and flag dates that are holidays which are observed by the Federal Reserve.  When the normal holiday is a Sunday, the script will also mark the following Monday as the observed holiday.

Total article views: 1851 | Views in the last 30 days: 21
Related Articles

Federal Holiday Function

Thought this might be helpful. I've written a T-SQL function that returns a federal holiday name ba...


Holidays as Benefits

When you take a job, do you ask about holidays? Do you consider them a benefit? Andy Warren asks wha...



I need to find a way to skip holidays for a scheduled job.


Creating Holidays and Special Dates

A way to save holiday records that can be created as needed into a search-able calendar table.


Calculate U.S. Holidays

This script runs off the Date Calendar table to flag is_workday when your business is closed for hol...

federal reserve    

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones