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,

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: 1791 | Views in the last 30 days: 5
 
Related Articles
FORUM

Federal Holiday Function

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

FORUM

Holidays

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

ARTICLE

Creating Holidays and Special Dates

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

SCRIPT

Calculate U.S. Holidays

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

FORUM

Federated servers and mirrors?

Is it possible to combine federation with mirroring

Tags
bank    
federal reserve    
holiday    
 
Contribute

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
Editor, SQLServerCentral.com

Already a member? Jump in:

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