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;Integr ated Security=SSPI;AttachDBFile name=|Data Directory| \inetdb.md f;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?
<configuration>
<connectionStrings>
<add name="AppServ"
connectionString="data source=.\SQLEXPRESS;Integr
providerName="System.Data.
</connectionStrings>
<appSettings>
<add key="MyAppConn" value="User Id=inepuser; Password=inepPwd; Data Source=lt10gr2; Enlist=false"/>
</appSettings>
Is it right setting?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
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