Record locking examples
- Last Updated: April 23, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
Record locking examples
A few simple examples can help illustrate how ABL handles different kinds of locks. When you start the Procedure Editor and connect to the Sports2020 database, you are running in single-user mode, as the only user of the database.
To set up your session to test locking:
- Exit your session to free up your single-user connection to the Sports2020 database.
- From a Proenv command prompt, change your directory to your working directory, or wherever your local Sports2020 database is located.
- Type the command: proserve sports2020. You should see a series of messages as the server starts up.
- Start the Procedure Editor.
- From the Tools menu, select .
- Click the Browse button, select the
sports2020.db, and click Open,
- Click the Options>> button, check the Multiple
Users checkbox, and click OK so that you connect to the
server in multi-user mode:
- Close the Data Dictionary.
Now your session is connected to the database server. To test the effects of record locking in a multi-user environment, you need to create a second OpenEdge session.
To start up another session:
- Start another Procedure Editor.
- Go through the same sequence of steps as before to connect in multi-user mode to the same Sports2020 database server.
- Close the Data Administration window.
Now you are ready to test locking conflicts.