Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_cleanupwebtask

 

sp_cleanupwebtask is no longer supported in SQL Server 2008. SQL Server 2005 supports the following three undocumented web task system stored procedures:
- sp_readwebtask
- sp_convertwebtasks
- sp_cleanupwebtask
- sp_dropwebtask

The web task system stored procedures are not enabled upon installation. To enable these stored procedures, you should use the Web Assistant Procedures Option to enable the Web Assistant procedures on this server.
To use the Web Assistant, you must also run the Web.sql script, available in the SQL Server 2005 installation location, in the MSSQL.x\MSSQL\Install folder.

Use Reporting Services instead.




Syntax

--====================================================================================
-- sp_cleanupwebtask: Internal stored procedure called by Enterprise Manager
--		    to clean up web
--		    task entries after their system task entry has been
--		    deleted. This procedure will return success
--		    if there is no web task entry associated with the given
--		    task id.

CREATE PROCEDURE sys.sp_cleanupwebtask
	    @taskid  int = 0
AS
BEGIN
    DECLARE	@procname nvarchar(128)
    DECLARE	@retval int
	SET @retval = 0

	-- Make sure that it's the SA executing this.
    IF ( NOT ( is_srvrolemember('sysadmin') = 1 ) )
    BEGIN
       RAISERROR( 15003, -1, -1, 'sysadmin' )
       RETURN(1)	
    END

    IF (@taskid = 0)
		RETURN(1)
		
    SELECT @procname = (SELECT procname FROM msdb..mswebtasks WHERE taskid = @taskid)

	--  Return if there is no such task
    IF (@procname is NULL)
	RETURN(1)

    EXEC @retval = sys.xp_cleanupwebtask @procname
    RETURN @retval
END

 
Last revision
See also

  sp_delete_job_references (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash