dbTalk Databases Forums  

Renaming all DTS pacakges on a server

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Renaming all DTS pacakges on a server in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
polinaskulski@aol.com
 
Posts: n/a

Default Renaming all DTS pacakges on a server - 08-01-2005 , 11:57 AM






Hi,
Is there any way to programatically rename all DTS packages on a server
to 'New_'+ old_name or save them all as 'New_'+ old_name
(and then I can delete the old ones)
Thanks


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Renaming all DTS pacakges on a server - 08-01-2005 , 01:40 PM






In message <1122915475.014134.296550 (AT) z14g2000cwz (DOT) googlegroups.com>,
polinaskulski (AT) aol (DOT) com writes
Quote:
Hi,
Is there any way to programatically rename all DTS packages on a server
to 'New_'+ old_name or save them all as 'New_'+ old_name
(and then I can delete the old ones)
Thanks

You can use the DTS object model to load and save packages.

Have a look at the "Transfer Packages Sample Application" here as a
start point-

Tools & Tasks
(http://www.sqldts.com/default.aspx?272)


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
polinaskulski@aol.com
 
Posts: n/a

Default Re: Renaming all DTS pacakges on a server - 08-01-2005 , 02:25 PM



Hi,
I use it but I cannot save DTS with the different name.


Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: Renaming all DTS pacakges on a server - 08-01-2005 , 04:37 PM



In message <1122924319.313752.129200 (AT) g14g2000cwa (DOT) googlegroups.com>,
polinaskulski (AT) aol (DOT) com writes
Quote:
Hi,
I use it but I cannot save DTS with the different name.

Look at the SaveToSQLServerAs method.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #5  
Old   
Rick Gittins
 
Posts: n/a

Default Re: Renaming all DTS pacakges on a server - 08-02-2005 , 04:13 PM



Have you tried to rename items in the packages tables in the msdb database?

Rick

<polinaskulski (AT) aol (DOT) com> wrote

Quote:
Hi,
Is there any way to programatically rename all DTS packages on a server
to 'New_'+ old_name or save them all as 'New_'+ old_name
(and then I can delete the old ones)
Thanks




Reply With Quote
  #6  
Old   
Darren Green
 
Posts: n/a

Default Re: Renaming all DTS pacakges on a server - 08-02-2005 , 04:38 PM



In message <eIZWvb6lFHA.2380 (AT) TK2MSFTNGP10 (DOT) phx.gbl>, Rick Gittins
<rgittins (AT) dungarvin (DOT) com> writes
Quote:
Have you tried to rename items in the packages tables in the msdb database?

Rick

polinaskulski (AT) aol (DOT) com> wrote in message
news:1122915475.014134.296550 (AT) z14g2000cwz (DOT) googlegroups.com...
Hi,
Is there any way to programatically rename all DTS packages on a server
to 'New_'+ old_name or save them all as 'New_'+ old_name
(and then I can delete the old ones)
Thanks

Don't bother, it renames the packages you see in the EM list, but that
will be overwritten the next time you save the package as the name is
stored in the object model, the image column, so it cannot fudged
through T-SQL.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.