select case when datepart (mm,getdate())>3 then 'abc' else 2 end
Conversion failed when converting the varchar value 'abc' to data type int.
Try this;
select CASE WHEN
datepart (mm,getdate())>3 then 'abc' else '2'
END
From CASE (Transact-SQL)
The data types of else_result_expression and any result_expression must be the same or must be an implicit conversion.