Joachim Hofmann
2009-11-27 15:19:43 UTC
Hello,
I migrated a DTS-Package to SSIS.
There is an ActiveX-Task in vbscript I d like to rewrite in a new VB.Net Scripttask.
The task sets the datasource of flatfile connections dynamically by prompting the user and setting
the datasource property.
Set oPackage = DTSGlobalVariables.parent
...
strPromptedPath = InputBox ("Where are the files?", "Import Post-CD")
...
oPackage.connections("PostCDDatei_XX").Datasource = strPromptedPath & "\myfile.txt"
How would I do this in a VB.Net Scripttask for this?
Are there some other references around for programming a Scripttask for SSIS and the SSIS
programmable objects in general?
Thank You
Joachim
I migrated a DTS-Package to SSIS.
There is an ActiveX-Task in vbscript I d like to rewrite in a new VB.Net Scripttask.
The task sets the datasource of flatfile connections dynamically by prompting the user and setting
the datasource property.
Set oPackage = DTSGlobalVariables.parent
...
strPromptedPath = InputBox ("Where are the files?", "Import Post-CD")
...
oPackage.connections("PostCDDatei_XX").Datasource = strPromptedPath & "\myfile.txt"
How would I do this in a VB.Net Scripttask for this?
Are there some other references around for programming a Scripttask for SSIS and the SSIS
programmable objects in general?
Thank You
Joachim