|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Yesterday @ 8:21 PM
Points: 32,893,
Visits: 26,765
|
|
Thought I'd revisit this one... calculation for Leap Years can be a lot more simple...
ISDATE(STR(@Year,4)+'0229')
--Jeff Moden "RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".
First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Monday, January 21, 2013 1:19 PM
Points: 727,
Visits: 264
|
|
Thanks for the code - nice and clean, with great comments. I'm using it and appreciate it.
- Paul
http://paulpaivasql.blogspot.com/
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, October 29, 2009 5:49 AM
Points: 1,
Visits: 1
|
|
Hello,
everthing works fine after i edited the isHoliday column  Nice script!
|
|
|
|