Calculate Easter for Any YearMarch 13, 2006
>>Script Language and Platform: T-SQL/SQL Server (All versions) Select dbo.Year2Easter(2005) as EasterExample 2: Declare @Year int,
@Years int
Set @Year = Year(getdate())
Set @Years = 10
Set @Years = @Years + @Year
While @Year <= @Years
Begin
Select @Year As [Year],
Easter = Case IsDate
Author: Robert Davis
Download Script:
Disclaimer: We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
"as -is", without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose...
Disclaimer Continued
Back to Database Journal Home |