TRY:
select ID,articleDate from table1 where DATEPART(Year,articleDate )="&myYear&" and DATEPART(month,articleDate )="&myMonth&"
select ID,articleDate from table1 where DATEPART(Year,articleDate )="&myYear&" and DATEPART(month,articleDate )="&myMonth&"
declare @mymonth varchar(10)
set @myyear = "&myYear&"
set @mymonth = "&myMonth&"
select ID,articleDate from table1
where DATEPART(yy,articleDate )=cast(@myyear as int)
and DATEPART(mm,articleDate )=cast(@mymonth as int)
from table1
where DATEPART(Year,articleDate )="&myYear&"
and DATEPART(month,articleDate )="&myMonth&"