Hoping a VFP/SQL guru has an answer!
Scenario:
- Remote View, table buffered.
- Backend is SQL Server.
- Underlying SQL table has Identity column.
- Usage: append from separate cursor with up to 99 rows; Tableupdate().
Question is: does the Identity field reflect the sequence in which rows are appended in the RV, or can it be random across the appended records?
With row buffering obviously it will follow append sequence but table buffering has an implicit transaction and is much more efficient in tests.
Reason for question is that currently some manipulation and ICASE() ordering (which the VFP View Designer doesn't like) is required to restore original order which changes internationally. So, either multiple RVs and/or sequencing classes are needed for each jurisdiction, or if Identity sequence reflects the append order then ordering by Identify field would simplify it all.
In my tests Identity does appear to respect appended order, but is that just happenstance or something I can rely on?
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us."
-- Shakespeare: Coriolanus, Act 1, scene 1