![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I'm working on a winform DTS package editor (VB.NET 2003, .NET1.1) to allow bulk renaming, changing/adding properties, etc. against SQL2000. After loading a package... goPackage.LoadFromSQLServer(DBServerName, , , DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrus tedConnection, , , , OldPkgName, ) adding a previously non-existant global variable... Dim oGlobal As DTS.GlobalVariable oGlobal = goPackage.GlobalVariables.New("gstrDiv") oGlobal.Value = "SFX" goPackage.GlobalVariables.Add(oGlobal) oGlobal = Nothing and then trying to save under a new name... goPackage.SaveToSQLServerAs(NewPkgName, DBServerName, "", "", DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrus tedConnection, , , , , ) I get the following error.... "The object in GlobalVariable 'gstrDiv' could not be persisted. It should be dynamically added to and removed from the GlobalVariables collection during Package execution. No such interface supported" Any Ideas? |
![]() |
| Thread Tools | |
| Display Modes | |
| |