create function getFullMonth(@month as varchar(20))
RETURNS varchar(20)
as
begin
declare @temp varchar(6)
set @temp=substring(@month,1,3)
set @month= case
when substring(@month,1,3)=substring('January',1,3) then replace(@month,@temp,'January')
when substring(@month,1,3)=substring('February',1,3) then replace(@month,@temp,'February')
when substring(@month,1,3)=substring('March',1,3) then replace(@month,@temp,'March')
when substring(@month,1,3)=substring('April',1,3) then replace(@month,@temp,'April')
when substring(@month,1,3)=substring('May',1,3) then replace(@month,@temp,'May')
when substring(@month,1,3)=substring('June',1,3) then replace(@month,@temp,'June')
when substring(@month,1,3)=substring('July',1,3) then replace(@month,@temp,'July')
when substring(@month,1,3)=substring('August',1,3) then replace(@month,@temp,'August')
when substring(@month,1,3)=substring('September',1,3) then replace(@month,@temp,'September')
when substring(@month,1,3)=substring('October',1,3) then replace(@month,@temp,'October')
when substring(@month,1,3)=substring('November)',1,3) then replace(@month,@temp,'November')
when substring(@month,1,3)=substring('December',1,3) then replace(@month,@temp,'December')
end