I have made this work, but the method I used feels really kludgy. I'm looking for a more elegant solution.
I have a numeric field that represents the month. I'd like to produce the word that represents that month. (ie...1 should produce 'January'). My solution is as follows:
DATENAME(MONTH, CAST(MonthField AS CHAR) + '/1/2000')
I don't particularly adding some arbitrary "date-like" text on the end of my given MonthField value. I'm looking for something akin to CMONTH() from FoxPro if it exists in T-SQL.
Thanks in advance!
Ray <><
I have a numeric field that represents the month. I'd like to produce the word that represents that month. (ie...1 should produce 'January'). My solution is as follows:
DATENAME(MONTH, CAST(MonthField AS CHAR) + '/1/2000')
I don't particularly adding some arbitrary "date-like" text on the end of my given MonthField value. I'm looking for something akin to CMONTH() from FoxPro if it exists in T-SQL.
Thanks in advance!
Ray <><