Hi,
I have a "Native OLEDB\Oracle Provider for OLEDB" connection in my SSIS package with name OracleConn. I want to access this connection inside my Script task (C#) like we access "Sql connection"(as shown below)
ConnectionManager cm;
System.Data.SqlClient.SqlConnection sqlConn;
System.Data.SqlClient.SqlCommand sqlComm;
cm =Dts.Connections["conectionManager1"];
sqlConn =(System.Data.SqlClient.SqlConnection)cm.AcquireConnection(Dts.Transaction);
sqlComm =newSystem.Data.SqlClient.SqlCommand("your SQL Command",
sqlConn);
sqlComm.ExecuteNonQuery();
cm.ReleaseConnection(sqlConn);
Please suggest how to access oracle connection in the same way. Thanks!!