Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am making a SSIS package which uses certain C# script. in this script i need to connect to ORACLE database. I have used a variable to store a value of connection string but i can't connect my script to the Oracle Database by using the (connection string)value of this variable. The same connection string works in SSIS but i cant make connection using this string through my C# script.

heres the sample of code i used to get the connection string from the variable
C#
string connn = Dts.Variables["OleDBConnString"].Value.ToString();
           OleDbConnection oCon = new OleDbConnection(connn);



and the value stored in the variable=Data Source=DEV.WORLD;User ID=GCAWARDSX; Password = gcawardsx;Provider=Microsoft OLE DB Provider for Oracle;Persist Security Info=True;
Posted

Try using "Oracle Provider for OLE DB" rather than "Microsoft OLE DB Provider for Oracle". It solved me.
 
Share this answer
 
i have the same problem it give me error code: ora-00911 invalid character
please i want solution for this
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900