Writing DataServer-portable applications
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
The least portable feature of ROWID references
is the scope of a ROWID reference and when it changes
for each DataServer. To maximize portability, follow these rules:
- Always assign values to unique keys before returning the
ROWIDvalue of a record. Some DataServers use a unique key to generate theROWIDvalue. - If you
UNDOaDELETEof a record for which you have stored theROWIDvalue, return theROWIDvalue again after theUNDO. It might be different after the record is recreated. - If you update a unique key value for a record, return its
ROWIDagain to replace any prior value. - Never expect a record to have the same
ROWIDvalue between sessions.
Note that each DataServer uses a different method to generate
a ROWID for a table, and sometimes for different
tables in the same database. Therefore, never expect ROWID values
to be identical, or even compatible, between otherwise duplicate
tables from different DataServers.
For more information on ROWID value construction and
scope for your DataServer, see your OpenEdge DataServer guide.