Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connect String
Message
De
07/01/2010 01:45:20
Mark Boyer
Wetherill Associates Inc.
Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Connect String
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Oracle
Application:
Desktop
Divers
Thread ID:
01442561
Message ID:
01442561
Vues:
104
I'm having trouble connecting to an Oracle database via SQLSTRINGCONNECT. I spent hours reading over all related posts and I am still having trouble. Using Connection Designer I am able to connect via the Connection String method. The connection string from the designer is:

DRIVER={Microsoft ODBC for Oracle};UID=xxxxx;PWD=xxxxx;SERVER=oraprod;

I've tried multiple versions of the syntax below.

nConnectHandle = SQLSTRINGCONNECT("DRIVER={Microsoft ODBC For Oracle};SERVER=ORAPROD;UID=xxxxx;PWD=xxxxx")
? SQLEXEC(nConnectHandle,"SELECT DISTINCT"+;
" Vehicle.BaseVehicleID, VehicleToEngineConfig.EngineConfigID, Vehicle.RegionID"+;
" FROM Vehicle INNER JOIN"+;
" VehicleToEngineConfig ON Vehicle.VehicleID = VehicleToEngineConfig.VehicleID","cVALUES")


I have no problem connecting to SQL via SQLCONNET with a DSN.

Any suggestions on whats wrong?

Thanks,

Mark J. Boyer
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform