Home Forums SQL Server 2008 SQL Server Newbies convert month name to month number RE: convert month name to month number
sharath.chalamgari
SSCertifiable
Points: 5680
More actions
May 6, 2010 at 3:00 am
#1163010
the above Query works with short names of the month
Declare @month as varchar(10)
set @Month = 'Dec'
select Month(@month + ' 1 2010')