I have months stored in SQL Server as 1,2,3,4,...12. I would like to display them as January,February etc. Is there a function in SQL Server like MonthName(1) = January? I a
Try this: SELECT MONTHNAME(concat('1970-',[Month int val],'-01'))
SELECT MONTHNAME(concat('1970-',[Month int val],'-01'))
For example- SELECT MONTHNAME(concat('1970-',4,'-01'))
SELECT MONTHNAME(concat('1970-',4,'-01'))
The answer is - April