Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to connect to dbase3 files through ODBC from vfp?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01281313
Message ID:
01301717
Views:
7
>Hi Doug
>I finally got the time to check this, but i do not see how this can update indexes. I am using the following:
>lnHandle = sqlstringconnect('Driver=Microsoft dBase Driver (*.dbf);dbq=c:\work\olddb3') && gives correct handle
>lnResult = sqlexec(lnHandle, "select * from table1", "test" ) && works
>lnResult = sqlexec(lnHadle, "insert into table1 (field1,field2) values ( val1,val2 )", "test" ) &&& does not work, lnresult=-1
>
>My question is, assuming table1 has index atable1.ndx, btable1.ndx, ctable1.ndx:
> how can i add/update records in Table1 while it is used in the network, and still updating all 3 indexes?


So what is the information for AERROR() on the SPT that fails?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform