DebbieChapman
Programmer
I've found some code on the net that shows me how to change the source data file of a Bulk insert Task, Does anyone know How to change the source data file for an Excel 8.0 connection ?
This is the code I've got
Dim opkg, oBulkInsert
Set oPkg = DTSGlobalVariables.Parent
set oBulkInsert = oPkg.Tasks("DTS_BulkInsertTask_1".CustomerTask
oBulkInsert.DataFile = DTSGlobalVariables("sFileName".Value
Set oBulkInsert = Nothing
Set oPkg = Nothing
This is the code I've got
Dim opkg, oBulkInsert
Set oPkg = DTSGlobalVariables.Parent
set oBulkInsert = oPkg.Tasks("DTS_BulkInsertTask_1".CustomerTask
oBulkInsert.DataFile = DTSGlobalVariables("sFileName".Value
Set oBulkInsert = Nothing
Set oPkg = Nothing