I have created a windows form with certain fields. I am trying to interact with oracle database through ODBC DSN connections.
I have an issue in the below connection string in app.config .
In the connection string password contains semicolon(here abc;45). I am getting an error:
"Format of the initialization string does not conform to specification starting at index 35" while i am trying to access this connection string using OdbcConnection connection = new OdbcConnection(connection_string); in C# code.
Below is my connection string.
add name="ConnectionString_T1" connectionString="DSN=CLA_T5;Uid=abc;Pwd=abc;45" providerName="System.Data.Odbc" />I pass the connection string to the below class.OdbcConnection connection = new OdbcConnection(connection_string);PS: I tried putting this password in double quotes/single quote/" ," ,{}But no use. Still facing this error. I have tried putting all the escape sequences
theLizardRank #1,079 · 1.8K reputationPosted Mar 14, 2014, 2:25 PM EDT
Punith Kumar3 reputationPosted Mar 16, 2014, 10:11 PM EDT
Thanks,
Punith
theLizardRank #1,079 · 1.8K reputationPosted Mar 16, 2014, 11:58 PM EDT