DTS Packages

Last post 10-15-2008 4:07 PM by lara99. 2 replies.
Page 1 of 1 (3 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 10-06-2008 2:25 PM

    DTS Packages

    hi all, I have lot of dts package son my production machine, everytime i save the dts package.

    it saves the version information of the dts package into the msdb table. now do i have to be concern about this

    is there a way to auto archive the version  information for dts packages.

    all suggestions are welcomed.

    Thanks in advance.

  • 10-07-2008 1:58 PM In reply to

    Re: DTS Packages

    What is the benifit of doing archiving other than saving some space of MSDB?

    you can use the following query to archive and delete older versions of dts packages....

    select  s1.*
    from sysdtspackages as S1
    where S1.createdate not in
    (select top 1 createdate
    from sysdtspackages as S2
    where S1.name = S2.name
    order by createdate desc)

    delete s1

    from sysdtspackages as S1
    where S1.createdate not in
    (select top 1 createdate
    from sysdtspackages as S2
    where S1.name = S2.name
    order by createdate desc)

     

    MohammedU.
    Microsoft SQL Server MVP
    Moderator
    SQL-Server-Performance.com

    All postings are provided “AS IS” with no warranties for accuracy.
  • 10-15-2008 4:07 PM In reply to

    Re: DTS Packages

    • Thanks mohammad for your valuable code.
Page 1 of 1 (3 items)
Active Topics   My Discussions    Unanswered Posts


© 2000 - 2007 vDerivatives Limited All Rights Reserved.