Hi, I have a dbfcdx file indexed using xharbour DBFCDX RDD set
using the RDDSetDefault("DBFCDX") function.
I can read and write to the file with a PHP\ODBC application
using the Microsoft Visual FoxPro ODBC Driver version
6.01.8629.01 but when i try to do an insert on the database
the ODBC driver return this error:
[Microsoft][ODBC Visual FoxPro Driver]Feature is not available
Does anyone know a solution?
Dear Marco:
On Tuesday, July 26, 2022 at 2:54:13 AM UTC-7, Marco wrote:
Hi, I have a dbfcdx file indexed using xharbour DBFCDX RDD set
using the RDDSetDefault("DBFCDX") function.
I can read and write to the file with a PHP\ODBC application
using the Microsoft Visual FoxPro ODBC Driver version
6.01.8629.01 but when i try to do an insert on the database
the ODBC driver return this error:
[Microsoft][ODBC Visual FoxPro Driver]Feature is not available
Does anyone know a solution?"Insert" is not a method offered in DBFCDX, "append" is. See if that does not help.
https://hackfox.github.io/section4/s4g058.html
... deprecated by anyone that has used it, I imagine.
David A. Smith
Since you appear to have missed my obvious advice: use APPEND [add to the end of the file], rather than INSERT [copy the existing file to a new file up to recno()-1, append this record, append the rest of the records from the original table, close theoriginal table, delete the original table, reopen the indexes, reindex all the indexes, position the record pointer to recno()].
Hi, the insert is done with PHP\ODBC not from xharbour, but
the table and the index is created by xharbour. Any idea to
prevent the error? Other query under PHP\ODBC on the same
table doesnt give the error.
INSERT is the SQL statement for APPEND, if I understood correctly what
Marco is asking for.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 87:39:53 |
Calls: | 6,658 |
Files: | 12,203 |
Messages: | 5,333,881 |