Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



dbo.sp_dts_deletefolder

 

sp_dts_deletefolder is no longer supported in SQL 2008. You can use sp_ssis_deletefolder.

Could not find stored procedure 'sp_dts_deletefolder'.
 


 




Syntax
CREATE PROCEDURE [dbo].[sp_dts_deletefolder]
  @folderid uniqueidentifier
AS
   DECLARE @name  sysname
   DECLARE @count int

   IF @folderid = '00000000-0000-0000-0000-000000000000'
   BEGIN
      RAISERROR (14307, -1, -1, '00000000-0000-0000-0000-000000000000')
      RETURN 1  -- Failure
   END

   SELECT
       @name = [foldername]
   FROM
       sysdtspackagefolders90
   WHERE
       [folderid] = @folderid
   IF @name IS NOT NULL
   BEGIN
       --// The row exists, check security
       IF (IS_MEMBER('db_dtsadmin')<>1) AND (IS_SRVROLEMEMBER('sysadmin')<>1)
       BEGIN
           IF (IS_MEMBER('db_dtsltduser')<>1)
           BEGIN
               RAISERROR (14307, -1, -1, @name)
               RETURN 1  -- Failure
           END
       END
   END

   -- Get the number of packages in this folder
   SELECT
      @count = count(*)
   FROM
      sysdtspackages90
   WHERE
      [folderid] = @folderid

   -- Are there any packages in this folder
   IF @count > 0
   BEGIN
      -- Yes, do not delete
      RAISERROR (14593, -1, -1, @name)
      RETURN 1  -- Failure
   END

   -- Get the number of folders in this folder
   SELECT
      @count = count(*)
   FROM
      sysdtspackagefolders90
   WHERE
      [parentfolderid] = @folderid

   -- Are there any folders in this folder
   IF @count > 0
   BEGIN
      -- Yes, do not delete
      RAISERROR (14593, -1, -1, @name)
      RETURN 1  -- Failure
   END

   DELETE FROM sysdtspackagefolders90
   WHERE
       [folderid] = @folderid

 
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