Deletes a previously defined web task. The task to be deleted is identified by the output filename, by the procedure name, or by both parameters.
sp_dropwebtask {@procname = procname | @outputfile = outputfile | @procname = procname, @outputfile = outputfile}
where
This stored procedure must be executed in the database specified in the @dbname parameter of sp_makewebtask.
Important The sp_dropwebtask, sp_makewebtask, and sp_runwebtask stored procedures can be run only on Microsoft SQL Server version 6.5 databases. Running these procedures on a database of a previous version will return errors.
For more information about creating and running a web task, see sp_makewebtask and sp_runwebtask later in this document.
This example deletes a web task by using the @outputfile of C:\WEB\MYFILE.HTML and an @procname of MYHTML.
sp_dropwebtask @procname = MYHTML, @outputfile = 'C:\WEB\MYFILE.HTML'
The user deleting the web task must be the owner of the specified procedure.