How to use the existing OLEDB connection Manager from scripttask Task(VB). i need to execute a SQL statement from “Script Task” Task.
Edit
Attempted the following code but couldn’t get the connection with my OLEDB Connectionmanager
Dim MyCM As ConnectionManager = Dts.Connections("MyConnection1")
Dim CS As String = Dts.Connections(MyCM).ConnectionString
sqlConn = New SqlConnection(CS)
I would refer you to this most excellent blog post by Todd McDermid, Using Connections Properly in an SSIS Script Task