![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to change the SourceObjectName of a datapump which reads an Excel file. It poops on: tsk.SourceObjectName = "Sheet2$" saying this method is not supported. OK. I need to read an Excel file whose sheet name changes each time. DTS defaults to "Sheet1$" which will not work in this case. Any ideas? Thanks Function Main() Dim pkg, tsk set pkg = DTSGlobalVariables.Parent set tsk = pkg.Tasks("DTSTask_DTSDataPumpTask_1") tsk.SourceObjectName = "Sheet2$" Main = DTSTaskExecResult_Success End Function |
#3
| |||
| |||
|
|
I am trying to change the SourceObjectName of a datapump which reads an Excel file. It poops on: tsk.SourceObjectName = "Sheet2$" saying this method is not supported. OK. I need to read an Excel file whose sheet name changes each time. DTS defaults to "Sheet1$" which will not work in this case. Any ideas? Thanks Function Main() Dim pkg, tsk set pkg = DTSGlobalVariables.Parent set tsk = pkg.Tasks("DTSTask_DTSDataPumpTask_1") tsk.SourceObjectName = "Sheet2$" Main = DTSTaskExecResult_Success End Function |
![]() |
| Thread Tools | |
| Display Modes | |
| |