![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I wonder if I'm missing something simple. I can't figure out how to rename a DTS packages (and I have a number that I want to rename). I couldn't figure out how to do it in the Enterprise Manager interface, so I tried writing a program against SQLDMO object model, but I always get a COM error trying to rename a package (local server package). The only way I can figure out to do it is (quite painfully) to recreate the entire package from scratch. This is quite painful because 1) I also can't figure out how to copy the contents from the old DTS package and paste them into the new one (the one with the new name) -- when I try to copy the contents, I get a DTS designer error saying select only one item. Obviously I want to copy all the items, not manually one at a time (plus, I don't know how copying workflow would work if I have to copy each item individually). 2) This sounds like another call for SQLDMO programming, but, I wonder if everyone else hasn't run into this same problem, and if there is an answer already available -- does anyone (eg, Microsoft) post a SQLDMO script to solve this ? (Or, is there a simple solution that I'm just overlooking ?) |
#3
| |||
| |||
|
|
I wonder if I'm missing something simple. I can't figure out how to rename a DTS packages (and I have a number that I want to rename). I couldn't figure out how to do it in the Enterprise Manager interface, so I tried writing a program against SQLDMO object model, but I always get a COM error trying to rename a package (local server package). The only way I can figure out to do it is (quite painfully) to recreate the entire package from scratch. This is quite painful because 1) I also can't figure out how to copy the contents from the old DTS package and paste them into the new one (the one with the new name) -- when I try to copy the contents, I get a DTS designer error saying select only one item. Obviously I want to copy all the items, not manually one at a time (plus, I don't know how copying workflow would work if I have to copy each item individually). 2) This sounds like another call for SQLDMO programming, but, I wonder if everyone else hasn't run into this same problem, and if there is an answer already available -- does anyone (eg, Microsoft) post a SQLDMO script to solve this ? (Or, is there a simple solution that I'm just overlooking ?) |
#4
| |||
| |||
|
|
I wonder if I'm missing something simple. I can't figure out how to rename a DTS packages (and I have a number that I want to rename). |
#5
| |||
| |||
|
|
peterjohannsen (AT) hotmail (DOT) com (pj) wrote in message news:<127ce4a9.0309110609.f4b572 (AT) posting (DOT) google.com>... I wonder if I'm missing something simple. I can't figure out how to rename a DTS packages (and I have a number that I want to rename). Sorry, I got mixed up. I know how to Save As to rename a package, but that doesn't really rename a package. That duplicates it to a new one (so, I do know how to duplicate a package -- I was confused before!) I want to rename the package, not duplicate it, because when you duplicate it, AFAICT, you lose all the history -- all the package logs. I don't know if you also lose all metadata lineage history ? But what I care about is losing all the log history -- the logs would be more useful to me if I were allowed to use them and also to rename packages. PS: Re: SQLDMO & DTS Oh, yes, DTS is a different typelib -- good point -- but I use SQLDMO to get to the objects which I then query using DTS typelib methods. I think of the whole thing as using SQLDMO, which is maybe insufficiently accurate. I wish Microsoft would identify a package by a GUID, say, and let the name just be a user-visible & editable string -- I assume that is the modern way to handle that. I'm somewhat surprised it doesn't work that way now -- they use GUIDs in a lot of places. |
#6
| |||
| |||
|
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |