Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_dropwebtask

 

sp_dropwebtask is no longer supported in SQL Server 2008. SQL Server 2005 supports the following four 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_dropwebtask: Drops a previously created Web Page Task

CREATE PROCEDURE sys.sp_dropwebtask
	    @procname nvarchar(128) = NULL,
	    @outputfile	nvarchar(255) = NULL
AS
BEGIN
    DECLARE	@retval int
	SET @retval = 0

    -- At least one of the parameters have to be NOT NULL
    IF ( (@procname is NULL) AND (@outputfile is NULL) )
	BEGIN
	    RAISERROR(16801,11,1)
	    RETURN(1)
	END
	
	-- Make sure that it's the SA executing this.
    IF ( NOT ( is_srvrolemember('sysadmin') = 1 ) )
    BEGIN
       RAISERROR( 15003, -1, -1, 'sysadmin' )
       RETURN(1)	
    END

	EXEC @retval = sys.xp_dropwebtask @procname, @outputfile

	IF (@retval <> 0)
	BEGIN
	    SET @procname = 'sp_dropwebtask'
	    RAISERROR(@retval,11,1, @procname)
	END

    RETURN @retval
END

 
Last revision
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