Solved

Oracle setting

Posted on 2015-01-14
4
45 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
  • 2
  • 2
4 Comments
 
LVL 142

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 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now