Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows ODBC Datasources and .Net System.Data.Odbc: Which driver is used?
    text
    copied!<p>I am confused on how to connect to Oracle via ODBC.</p> <p>I have created an ODBC datasource named "<strong>oracle</strong>" in my Control Panel > Administrative Tools, and used the driver "Microsoft ODBC for Oracle".</p> <p>In my app.config , I have the following connection strings</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;configSections&gt; &lt;/configSections&gt; &lt;connectionStrings&gt; &lt;add name="MappingAssistantGui2.Properties.Settings.maConnectionString" connectionString="Dsn=oracle;uid=ma;pwd=ma" providerName="System.Data.Odbc" /&gt; &lt;add name="MappingAssistantGui2.Properties.Settings.maConnectionStringSqlServer" connectionString="Dsn=sqlserver;uid=sli;pwd=slislisli" providerName="System.Data.Odbc" /&gt; &lt;add name="MappingAssistantGui2.Properties.Settings.maConnectionStringOracle" connectionString="Dsn=oracle;uid=ma;pwd=ma" providerName="System.Data.Odbc" /&gt; &lt;/connectionStrings&gt; &lt;startup&gt; &lt;supportedRuntime version="v2.0.50727" /&gt; &lt;/startup&gt; &lt;/configuration&gt; </code></pre> <p>In my code I use the connection string maConnectionString (the first one). I am confuse on what driver is being used underneath:</p> <ol> <li>Microsoft ODBC for Oracle</li> <li>System.Data.Odbc</li> <li>Are these two the same? </li> <li>Or are the System.Data.Odbc classes through which I am accessing the driver? I mean, is "Microsoft ODBC for Oracle" an implementation of ODBC access for Oracle, created by Microsoft? </li> <li>Something else?</li> </ol> <p>Do I <strong>need</strong> to have defined an ODBC datasource to be connecting with System.Data.Odbc namespace to a database (whichever of Oracle, SQL Server, MySQL)?</p> <p>Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload