Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



dbo.sp_dts_addfolder

 

This procedure is no longer supported in SQL 2008. You can use sp_ssis_addfolder or the query below.

INSERT INTO dbo.sysdtspackagefolders90 (
       folderid
      ,parentfolderid
      ,foldername)
   VALUES (
       NEWID()                 -- New GUID for our new folder
      ,'00000000-0000-0000-0000-000000000000'  -- Lookup the parent folder GUID if a child or another folder, or use the root GUID 00000000-0000-0000-0000-000000000000
      ,'Maintenance Plans'  )      -- New folder name

Common error:

Could not find stored procedure 'sp_dts_addfolder'.
 




Syntax
CREATE PROCEDURE [dbo].[sp_dts_addfolder]
  @parentfolderid uniqueidentifier,
  @name sysname,
  @folderid uniqueidentifier = NULL
AS
   --Check security
   IF (IS_MEMBER('db_dtsltduser')<>1) AND (IS_MEMBER('db_dtsadmin')<>1) AND (IS_SRVROLEMEMBER('sysadmin')<>1)
   BEGIN
       RAISERROR (14591, -1, -1, @name)
       RETURN 1  -- Failure
   END

   --// Security check passed, INSERT now
   INSERT INTO sysdtspackagefolders90 (folderid, parentfolderid, foldername)
   VALUES (ISNULL(@folderid, NEWID()), @parentfolderid, @name)

 
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