Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Troubleshooting on SQLExec connectivity
Message
From
19/06/2006 18:40:24
 
 
To
19/06/2006 18:38:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01130093
Message ID:
01130094
Views:
15
>When I do this command:
>
>
>lnHandle=SQLStringConnect("Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=d:\data;Exclusive=No;NULL=NO;
> Collate=Machine;BACKGROUNDFETCH=NO;DELETED=NO")
>
>
>lnHandle contains a valid ID. If I do the command again, lnHandle increments by one. So, this shows that the connection is valid.
>
>Now, when I try to do this:
>
>
>? SQLEXEC(lnHandle,"SELECT * FROM Customer")
>
>
>It always return -1. What am I missing?

What does a call to AERROR() return?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform