Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Troubleshooting on SQLExec connectivity
Message
From
19/06/2006 18:38:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Troubleshooting on SQLExec connectivity
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01130093
Message ID:
01130093
Views:
75
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?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform