Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with SQL Select Statement
Message
 
 
To
15/01/2002 22:50:34
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00605212
Message ID:
00605213
Views:
11
You can use AERROR() function to see what error ODBC driver returns
=AERROR(laError)
? ALLTRIM( laError[1,3] )
>Hi!
>
>Im Querying a table using sqlconnect and sqlexec commands. Im trying to query a table with a parameter .T. The code is illustrated below. Please check if there is an error on my syntax
>nHandle = Sqlconnect("DNSname")
>cSQL    = [ Select * from DatabaseName!TableName WHERE fieldname = ] + [.T.]
>nResult = Sqlexec(nHandle, cSQL, "cur_tablename")
>with this code, nResult returns a negative value and does not produce the cursor I wanted to create base from the query.
>
>
>Any Help will be greatly appreciated
>
>thanks in advance...
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform