Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with SQL Select Statement
Message
From
16/01/2002 07:24:17
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
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:
00605306
Views:
12
Mike,

Do you have a typo, or are you looking for a field named ".T." ???

Looks like your cSQL evaluates to
Select * from DatabaseName!TableName WHERE fieldname = .T.
>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...
Previous
Reply
Map
View

Click here to load this message in the networking platform