![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 . |
#3
| |||
| |||
|
|
SSIS packages are really for un-attended operation. That being said, you CAN direct the package from external sources such as: *Configuration files, databases, environment variables, and parent package variables *Using the /SET switch with DTExec command line utility *Instantiate the package execution progamatically by wrapping it in code (something I have not personally done but know that you have an entire object model available in VB for). |
|
Joachim: O hope you'r not offended by my attempt at humor in the openning lines. But seriously, I wouldn't program into a package anything that stops Consider this scenario: You now have to process 100 flat files instead of just one. Will your user want to type in the path 100 times? |
![]() |
| Thread Tools | |
| Display Modes | |
| |