Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I cannot seem to do a SQL Select with a where clause
Message
From
10/12/1999 16:41:21
 
 
To
10/12/1999 16:06:53
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00301982
Message ID:
00302011
Views:
32
>=SQLEexec(nHandle, "select ContHist.RecID from ContHist where INLIST(ContHist.ResultCode,'EXP','BXP')", "ThisCursor")
>
>What is SQLEExec? is this a VFP6 thing? ODBC thing?

SQLExec() is the SQL Passthrough command that sends a query or operation to a backend for execution. In this case, it won't work because the INLIST() function being passed is not a part o the backend's SQL implementation - it should be converted to a standard TransAct SQL syntax IN clause.

>
>I'm wondering how it's different from SELECT - SQL...

It's a way to have VFP ask another SQL engine to process a query - VFP forms an operation to be performed at the backend and passes the request to the backend server.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform