Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting to Oracle
Message
De
07/09/2004 15:12:06
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Connecting to Oracle
Divers
Thread ID:
00940058
Message ID:
00940058
Vues:
97
We connect to an Oracle database in our application. If I use the Microsoft driver to connect, I get a connection handle returned with no problem.

But if I use the Oracle driver to connect, I get a dialog asking for a Service Name. After I enter the Service Name, I then get a valid connection handle.

Below are both of my connection strings, why does the Oracle example force me to re-enter my Service name (myserver), which is already set in the connection string?

***MS. This works without a prompt.
myconn = SQLSTRINGCONNECT("driver=Microsoft ODBC for Oracle;uid=myid;pwd=mypass;server=myserver;")

***This will connect, but a 'Oracle ODBC driver connect' dialog appears
***first, forcing me to enter a Service Name, which is blank.
myconn = SQLSTRINGCONNECT("driver=Oracle ODBC Driver;uid=myid;pwd=mypass;server=myserver;")

Thanks,

Jerry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform