![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, Instead of defining a dynamic property task in each DTS I rather would have an ActiveX Script task changing the properties of a package. 1. Is this possible? 2. How is it done? Thanks Rene |
#3
| |||
| |||
|
|
Rene This is code that I've use to do this. Hope it helps. '************************************************* ********************* ' Visual Basic ActiveX Script '************************************************* *********************** Function Main() dim pkg set pkg = DTSGlobalVariables.Parent dim conOV dim rs set conOV = CreateObject("ADODB.Connection") conOV.Open "File Name=" & DTSGlobalVariables("gvsOneViewLive_Udl").Value set rs = CreateObject("ADODB.RecordSet") rs.Open "tblSystemParameter", conOV rs.movefirst while not rs.EOF If rs("ParamName") = "RPT_" + DTSGlobalVariables("gvsMISEnvironment").Value & "_SAP_Unc" Then DTSGlobalVariables("gvsSAPFilesUNC").Value = rs("ParamValue") End If rs.movenext wend rs.close conOV.close DTSGlobalVariables("gvsEmployees_UNCFileName").Val ue = DTSGlobalVariables("gvsSAPFilesUNC").Value & DTSGlobalVariables("gvsEmployeesFileName").Value Main = DTSTaskExecResult_Success End Function "Rene H" wrote: Hello, Instead of defining a dynamic property task in each DTS I rather would have an ActiveX Script task changing the properties of a package. 1. Is this possible? 2. How is it done? Thanks Rene |
![]() |
| Thread Tools | |
| Display Modes | |
| |