SQL Clone
SQLServerCentral is supported by Redgate
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: 1979 | Views in the last 30 days: 10
Related Articles

Federal Holiday Function

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


SQL Azure Federation

 What is Federation? Federation is a database object like other objects such as tables, vie...


Holidays and Calendar Generation

Create the definition of your holidays and have them available for any year. Create a Calendar incl...


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.

federal reserve