sp_makewebtask @outputfile = 'e:\sqlweb\snmp.htm', @query = 'select TimeDateReceived Time, GenericTrapType, Variable3Data Server, NTEventSource, IPAddress IP_Addr, Variable1Data Description from SNMP_Traps order by TimeDateReceived desc', @procname = 'snmpweb', @dbname = 'SMS', @unittype = 4, @numunits = 4, @whentype = 8, @templatefile = 'e:\sqlweb\dbresult.htm'