Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting to Oracle
Message
 
À
07/09/2004 15:12:06
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00940058
Message ID:
00940106
Vues:
25
Hi Jerry,
myconn = SQLSTRINGCONNECT("driver=Oracle ODBC Driver;uid=myid;pwd=mypass;dbq=ORACLE_SERVICE_NAME;")
MartinJ

>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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform