Hi
I am using 2 connection managers in my ssis package pointing to same server.I used activex script to select server and assign it to connection managers.I declared 2 variables(package scope ).here is my code
Function Main()
DTSGlobalVariables("DBServer").Value = "devserver"
DTSGlobalVariables("DBName").Value = "aa"
' DTSGlobalVariables("DBServer").Value = "proserver"
' DTSGlobalVariables("DBName").Value = "aa"
With DTSGlobalVariables.Parent.Connections("connectionmanager1")
.DataSource = DTSGlobalVariables("DBServer").Value
.Catalog = DTSGlobalVariables("DBName").Value
End With
With DTSGlobalVariables.Parent.Connections("connectionmanager2")
.DataSource = DTSGlobalVariables("DBServer").Value
.Catalog = DTSGlobalVariables("DBName").Value
End With
Main = DTSTaskExecResult_Success
End Function
When I execute this task my connection managers should get connected to my devserver.but i got error?
Can anybody help me woth this.