Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connect String
Message
From
07/01/2010 01:45:20
Mark Boyer
Wetherill Associates Inc.
North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Connect String
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Oracle
Application:
Desktop
Miscellaneous
Thread ID:
01442561
Message ID:
01442561
Views:
103
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
Next
Reply
Map
View

Click here to load this message in the networking platform