Walter Meester
HoogkarspelNetherlands
General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Hi nadya,
>The appender application could be run by only one user. I don't use buffering at all for this particular application.
>Do you think, it could be some internal NT buffering, which causes this select to return incorrect results?
I'm indeed talking about buffering on the OS level, thus not the buffering mechanism in VFP. When VFP opens a table, the OS buffers a portion of the table regardless of the VFP buffering mechanism. So, if you're issueing a SELECT command, you're not entirely sure that you've got the most recent data unless:
1. You've got exclusive access to these tables
2. You've flock-ed the tables
3. You're the only one who could change the tables.
In cases where one of the tables could be changed (insert, modify or delete records) by other users on the network, one of the three methods above must be used in order to make sure you're working with the most recent data.
Also, do not forget, that between the SQL-statement and the actual insert of a new record in the table another user might have changed one of the source tables. In these cases autogenerated primarykeys are very practical.
Walter,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only