Duplicate connections when using LoadFromSQLServer and SaveToSQLSe
From: gborda (gborda_at_discussions.microsoft.com)
Date: 09/24/04
- Next message: Allan Mitchell: "RE: Fatal execution engine error during assignment creation"
- Previous message: rob: "Re: dts imports , records added to table randomly. not sorted as in text file"
- Next in thread: Allan Mitchell: "Re: Duplicate connections when using LoadFromSQLServer and SaveToSQLSe"
- Reply: Allan Mitchell: "Re: Duplicate connections when using LoadFromSQLServer and SaveToSQLSe"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 24 Sep 2004 07:55:05 -0700
Hello:
I am working on a VB.NET program that allows me to copy whatever DTS package
or packages from one server to another. I am using the following lines of
code to do the actual copying:
For Each strPackageName In arrPackageList
objDTSPackage = New DTS.Package2
'Copy DTS package from source server to destination server
objDTSPackage.LoadFromSQLServer(strSServer, strSUser, strSPassword,
DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, , , , strPackageName)
objDTSPackage.SaveToSQLServerAs(strPackageName, strDServer, strDUser,
strDPassword, DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_Default)
objDTSPackage.UnInitialize()
objDTSPackage = Nothing
Next
Everything seems to work fine, but when I open a package on the destination
server, sometimes it has duplicated connections. For example, if the source
server has two connections originally, on the destination server, the package
shows me four connections. This happens with TEXT FILE connections (OLE DB
connections get copied fine).
I will appreciate any comments of how to explain or solve this behaviour.
- Next message: Allan Mitchell: "RE: Fatal execution engine error during assignment creation"
- Previous message: rob: "Re: dts imports , records added to table randomly. not sorted as in text file"
- Next in thread: Allan Mitchell: "Re: Duplicate connections when using LoadFromSQLServer and SaveToSQLSe"
- Reply: Allan Mitchell: "Re: Duplicate connections when using LoadFromSQLServer and SaveToSQLSe"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|