declare the variables first, then set them in the select clause.
declare
@ID int,
@Description varchar(10),
@DefaultTemplateText varchar(10)
select
@ID = ET.ID,
@Description = ET.Description,
@DefaultTemplateText = ET.DefaultTemplateText
from
TBL_EMAILTEMPLATE ET
where
ET.NAME = 'OneWeekReminder'
source
share