2.
exec sp_makewebtask  @outputfile='c:\demo.htm',@query='select no as 编号,name as 姓名 
   CASE sex
      WHEN 1 THEN '男'
      WHEN 0 THEN '女'
   END as 性别 from demo',@whentype=10,datachg={[no]}