Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Finding Last Business Day

Author  Topic 

rwlopez
Yak Posting Veteran

80 Posts

Posted - 2006-09-29 : 11:44:06
Does anyone know a function or procedure that finds that last business day? I need to write something that find the last business day excluding weekends and holidays.

Page47
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2006-09-29 : 11:52:23
SQL Server doesn't know on which days your business operates nor what holidays you observer. One way or another, you'll need to tell it.

Jay White
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-09-29 : 13:36:49
Try a Google search of sqlteam.com for "business day", "holiday", or "weekend".

This question has been answered many times here, so you are sure to find something to help.





CODO ERGO SUM
Go to Top of Page
   

- Advertisement -