Solved

How to remove previous versions of DTS packages on SQL 2005?

Posted on 2008-06-12
5
1,375 Views
Last Modified: 2013-11-30
I've recently upgraded to SQL 2005.  Using the legacy tools, I have a DTS package that I made changes to.  Now there are multiple versions of that DTS package.   In 2000, you could just right click on the DTS package, choose 'Versions', and remove the older versions.   I'm not seeing anywhere to do this in 2005.

Can you please let me know how to remove the older versions of the DTS packages?

Thank you.
0
Comment
Question by:colorbok
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
cm0605 earned 125 total points
ID: 21769869
You can use the procedure:
EXEC msdb.dbo.sp_drop_dtspackage @name = '',
                                                            @id = ,
                                                            @versionid =
The name, id and versionid can be found in the msdb.dbo.sysdtspackages table.

Chad
0
 

Author Comment

by:colorbok
ID: 21770378
I don't want to execute it, I want to remove the old versions.
0
 

Author Comment

by:colorbok
ID: 21770387
Sorry, didn't read the code close enough.....I'll try that out and see how it works.    So you don't know of anyway to do it via the Studio interface???
0
 
LVL 2

Expert Comment

by:cm0605
ID: 21771287
The best solution I have for you is to create an SSIS package and do away with the dts package.

Chad
0
 

Author Closing Comment

by:colorbok
ID: 31466559
Thank you!!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now