Hi all,
I am confused on how to connect to Oracle via ODBC.
I have created an ODBC datasource named "oracle" in my Control Panel > Administrative Tools, and used the driver "Microsoft ODBC for Oracle".
In my app.config , I have the following connection strings
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="MappingAssistantGui2.Properties.Settings.maConnectionString"
connectionString="Dsn=oracle;uid=ma;pwd=ma" providerName="System.Data.Odbc" />
<add name="MappingAssistantGui2.Properties.Settings.maConnectionStringSqlServer"
connectionString="Dsn=sqlserver;uid=sli;pwd=slislisli" providerName="System.Data.Odbc" />
<add name="MappingAssistantGui2.Properties.Settings.maConnectionStringOracle"
connectionString="Dsn=oracle;uid=ma;pwd=ma" providerName="System.Data.Odbc" />
</connectionStrings>
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>
In my code I use the connection string maConnectionString (the first one). I am confuse on what driver is being used underneath:
- Microsoft ODBC for Oracle
- System.Data.Odbc
- Are these two the same?
- 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?
- Something else?
Do I need to have defined an ODBC datasource to be connecting with System.Data.Odbc namespace to a database (whichever of Oracle, SQL Server, MySQL)?
Thanks!