Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Oracle setting

Posted on 2015-01-14
4
Medium Priority
?
56 Views
Last Modified: 2015-01-16
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?
0
Comment
Question by:minglelinch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 40548870
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
0
 
LVL 1

Author Comment

by:minglelinch
ID: 40549133
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.
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 40549290
to build up good connection strings, check out this page (for Oracle):
http://www.connectionstrings.com/oracle/
0
 
LVL 1

Author Closing Comment

by:minglelinch
ID: 40553502
Thank you.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question