Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
selectdate,month_name =case when month(date) = 1 then 'Jan' when month(date) = 2 then 'Feb' when month(date) = 3 then 'Mar' . . . when month(date) = 12 then 'Dec' endfrom MyTable