Viewing 2 posts - 1 through 2 (of 2 total)
Similarly if you want to list all the month names for a year using a T-SQL statement, you can do this:
SELECT Number + 1 as [MonthNumber],
DateName(mm,DATEADD(mm,Number,0)) as [MonthName]
FROM master..spt_values
WHERE Type...
May 21, 2010 at 12:55 am
#1170611
That query gives perfect result.
Thanks.
Mandar Kavishwar.
EC Infosolution
March 2, 2010 at 10:48 pm
#1127537