Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ghost from the SQLExec()
Message
From
03/03/2006 18:31:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Ghost from the SQLExec()
Miscellaneous
Thread ID:
01101438
Message ID:
01101438
Views:
51
There should be something obvious I am missing here. I just can't see what it is.

I can do the following:
lnHandle=SQLStringConnect('Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=d:\WWW\DirectMartialArts;'+;
 'Exclusive=No;Collate=Machine;NULL=NO;Deleted=Yes;BACKGROUNDFETCH=NO')
? lnHandle
This gives me a valid handle.

I can also do this:
SELECT * FROM d:\WWW\DirectMartialArts\Event
And, this gives me the related data.

But, why doing it with SQLExec() generates a -1?
? SQLExec(lnHandle,'SELECT * FROM Event')
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