Calendar in SQL Server 2000

>>Script Language and Platform: SQL Server 2000
Build one calander in SQLSERVER used Functions. The function shows below.

The function execute in this way


SELECT * FROM calander(2,2002)

The OutPut is

SUN MON TUE WED THU FRI SAT
—- —- —- —- —- —- —-
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28

(5 row(s) affected)

Copy this function and execute in Query Analyser.

Any month and any year will be passing this function, which to get the above output.

Author: Arun

Download Script:
arun_cal.sql



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

Latest Articles