Link to home
Start Free TrialLog in
Avatar of minglelinch
minglelinch

asked on

Oracle setting

I started to initiate a .net web application with Oracle at the back end. My first time to connect Oracle. I have the following setting in the web.config file -

<configuration>
  <connectionStrings>
    <add name="AppServ"
         connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\inetdb.mdf;User Instance=true"
         providerName="System.Data.SqlClient" />
  </connectionStrings>

  <appSettings>
    <add key="MyAppConn" value="User Id=inepuser; Password=inepPwd; Data Source=lt10gr2; Enlist=false"/>
   </appSettings>

Is it right setting?
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

no, that connection string is for SQL Server.
to start with; System.Data.SqlClient  is not correct, you do have several choices.
either some generic OleDb client or the Oracle client, both needs specific code, you cannot use the same code for sql server and oracle (unless you use the generic OleDb code
Avatar of minglelinch
minglelinch

ASKER

Thank you for your comment. I was a SQL server person and now switch to Oracle. I use ODP.net. I tried to find the right setting in web.config for Oracle connection setting. I appreciate any one who can help me with issue.
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.