select shortmonths from master.dbo.syslanguages where name = 'us_english'select distinct number, datename(month, dateadd(month, number, -1)) as Month, left(datename(month, dateadd(month, number, -1)), 3) as ShortMonthfrom master.dbo.spt_values where number between 1 and 12/*shortmonths -------------------------------------------------------Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Decnumber Month ShortMonth ----------- ------------------------------ ---------- 1 January Jan2 February Feb3 March Mar4 April Apr5 May May6 June Jun7 July Jul8 August Aug9 September Sep10 October Oct11 November Nov12 December Dec*/
Ryan Randallwww.monsoonmalabar.com London-based IT consultancy Solutions are easy. Understanding the problem, now, that's the hard part.