SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DTUTIL Utility to Copy / Delete SSIS Deployed in MSDB to File System


DTUTIL Utility to Copy / Delete SSIS Deployed in MSDB to File System

Author
Message
DbRob
DbRob
SSC-Enthusiastic
SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)

Group: General Forum Members
Points: 160 Visits: 260
Vampire (1/15/2009)
@chileu17

That script is meant for KATMAI ( SQL 2008 ).

Cheers,
Vampire


Yes, I posted the wrong version for SQL 2005- sorry for the confusion.

Here is the SQL 2005 version:

SELECT foldername AS FolderName,
[name] AS PackageName
INTO #PackageNames
FROM msdb.dbo.sysdtspackages90 pkg
JOIN msdb.dbo.sysdtspackagefolders90 fld ON pkg.folderid = fld.folderid
ORDER BY FolderName,
PackageName

SELECT 'dtutil /SQL ' + '"' + CASE WHEN LEN(FolderName) = 0 THEN ''
ELSE FolderName + '\'
END + PackageName + '"' + ' /COPY FILE;"C:\OutputFolder\'
+ CASE WHEN LEN(FolderName) = 0 THEN ''
ELSE FolderName + '\'
END + PackageName + '.dtsx' + '"' + ' /QUIET' --suppresses prompt to delete if an older file with same name exists
FROM #PackageNames

DROP TABLE #PackageNames
-----------------------------------------------

I have added quotes to the folder paths, as you will need these if your paths contain spaces. Also, special thanks to Mike Condon for providing me with this script!
DbRob
DbRob
SSC-Enthusiastic
SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)

Group: General Forum Members
Points: 160 Visits: 260
Vampire (1/15/2009)
@chileu17

That script is meant for KATMAI ( SQL 2008 ).

Cheers,
Vampire


Yes, I posted the wrong version for SQL 2005- sorry for the confusion.

Here is the SQL 2005 version:

SELECT foldername AS FolderName,
[name] AS PackageName
INTO #PackageNames
FROM msdb.dbo.sysdtspackages90 pkg
JOIN msdb.dbo.sysdtspackagefolders90 fld ON pkg.folderid = fld.folderid
ORDER BY FolderName,
PackageName

SELECT 'dtutil /SQL ' + '"' + CASE WHEN LEN(FolderName) = 0 THEN ''
ELSE FolderName + '\'
END + PackageName + '"' + ' /COPY FILE;"C:\OutputFolder\'
+ CASE WHEN LEN(FolderName) = 0 THEN ''
ELSE FolderName + '\'
END + PackageName + '.dtsx' + '"' + ' /QUIET' --suppresses prompt to delete if an older file with same name exists
FROM #PackageNames

DROP TABLE #PackageNames
-----------------------------------------------

I have added quotes to the folder paths, as you will need these if your paths contain spaces. Also, special thanks to Mike Condon for providing me with this script!
DbRob
DbRob
SSC-Enthusiastic
SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)

Group: General Forum Members
Points: 160 Visits: 260
Admin- my browser was hanging and it looks like this got posted multiple times...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search