![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How can I loop the rowset values one by one for data connection? I've only checked if there're values in the recordset and assign the connection values |
|
If not oRS.BOF Then Set oConn1 = DTSGlobalVariables.Parent.Connections("Sybase ASE OLE DB Provider") oConn1.DataSource = Trim(oRS.Fields(0).Value) ' source server oConn1.Catalog = Trim(oRS.Fields(1).Value) ' source DB Set oConn = DTSGlobalVariables.Parent.Connections("SQL Server") oConn.DataSource = Trim(oRS.Fields(3).Value) ' dest. Server oConn.Catalog = Trim(oRS.Fields(4).Value) ' dest. DB Set oDataPump = oPkg.Tasks("DTSTask_DTSDataPumpTask_1").CustomTask oDataPump.SourceObjectName = Trim(oRS.Fields(2).Value) ' source table oDataPump.DestinationObjectName = Trim(oRS.Fields(5).Value) ' dest. table Set oDataPump = Nothing Set oConn = Nothing Set oConn1 = Nothing oRS.MoveNext End If I've followed the example at http://www.sqldts.com/default.aspx?246 |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |