![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using a VBScript ActiveX task to load in a structured file and then save said package to either the local server or the repository. This works fine except that the spectre of multiple versions rears it's head, that is the LoadFromStorageFile call will only be happy if there is VersionID referenced as a parameter. As you can see, I do not reference the package name or version: : oPkg.LoadFromStorageFile sFileName, "" oPkg.SaveToSQLServer sServer, "", "", 256 : So, what I would like to do is be able to always load the latest version of the package, regardless of how many there are or when they were created. At the point when I load the file neither do I know nor care what the versions are. Has anyone found an efficient way of doing this or even enumerating the versions to establish the latest? Thanks |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
The DTS package returns the following error if there is more than one version: The specified Storage File contains multiple packages; Loading requires a Name or GUID I know that this issue can be circumnavigated if the package is saved as a Structured Storage file from fresh, in which case it saves only one version and the load call does not have a problem. I do not really want to have to save each of the several hundred packages that I have already created and which have multiple versions! |
#6
| |||
| |||
|
|
Neil - this is a BIG problem - been fighting it for years! My needs are even simpler - I frequently use a simple 'Master' dts package that call dtsrun and reference a package in each task. Whether you reference a SQL Server based package or a Structured Storage File, you get the same version problems. Perfect example of the cure being worse than the ailment!! Please let me know if you find a solution! snip The DTS package returns the following error if there is more than one version: The specified Storage File contains multiple packages; Loading requires a Name or GUID I know that this issue can be circumnavigated if the package is saved as a Structured Storage file from fresh, in which case it saves only one version and the load call does not have a problem. I do not really want to have to save each of the several hundred packages that I have already created and which have multiple versions! |
![]() |
| Thread Tools | |
| Display Modes | |
| |