I have a WinForms application written for .Net Framework 3.5 in VB.net using Oracle back end (Microsoft System.Data.OracleClient.dll), Target Platform "any CPU". Now my company has upgraded from Windows XP to Windows 7 -64 bit and naturally the app stopped working due to the obsolete data access namespace. I am trying to replace it with ODP.Net, however, I cannot seem to get the connectionstring right. This is what I used with the Microsoft namespace: Data Source=Oracle;server= tscpgn; Persist Security Info=false;User ID=myID;Password=mypassword How am I supposed to alter this to make it work with Oracle.DataAccess? I have tried every variation I found floating around on the web but none seems to work. For example this one definitely does not work: conn.ConnectionString ="Data Source=ServerName;User id= UserName;";"Password=mypassword;";
Since 'server' is not a valid attribute of the Oracle connectionstring I do not know how to give this piece of info to the connection object.
OracleConnectionStringBuilderclass that will build the string for you.