Hi,
I have an app. that inserts and updates records in a vfp8 database. The database has 2 tables, a header and a detail.
Since adding a record involves inserting a single header and multiple details I start with a BEGIN TRANSACTION, insert the header record, loop through the details and insert them and if all works do an END TRANSACTION. Fairly standard straight forward stuff. However when I try to access the header, the record is not in the table yet. I thought 'buffering'. It is set to record pessimistic. I tried FLUSH and sys(1104). Neither helped. If I close and reopen the table in the app the record is there. It works that way but that seems to me to be kind of a kluge.
Anybody got any suggestions?
Thanks,
Bill
I have an app. that inserts and updates records in a vfp8 database. The database has 2 tables, a header and a detail.
Since adding a record involves inserting a single header and multiple details I start with a BEGIN TRANSACTION, insert the header record, loop through the details and insert them and if all works do an END TRANSACTION. Fairly standard straight forward stuff. However when I try to access the header, the record is not in the table yet. I thought 'buffering'. It is set to record pessimistic. I tried FLUSH and sys(1104). Neither helped. If I close and reopen the table in the app the record is there. It works that way but that seems to me to be kind of a kluge.
Anybody got any suggestions?
Thanks,
Bill