Entering content frame

Background documentation Isolation Level (Microsoft Windows) Locate the document in its SAP Library structure

Use

SAP DB allows concurrent transactions on database objects. To do this, it uses a lock concept that creates locks on rows and tables to contain individual transactions. The lock operation type plays an important role in this. This is determined by defining an isolation level.

Use the Isolation Level option if you want to change the system default value for the lock operation type (Committed). The value defined in this way then applies for all connections of the data source.

The set lock operation type can be overridden by the application using the function SQLSetConnectAttr and queried with SQLGetConnectAttr.

Overview of the possible lock operation types

 

Dirty Read

Non-repeatable Read

Phantom Read

Uncommitted

x

x

x

Committed

 

x

x

Repeatable

   

x

Serializable

     

 

Note

The lock operation type Uncommitted corresponds to the weakest isolation level (0), while Serializable corresponds to the strongest isolation level (4).

Procedure

  1. Start the ODBC Data Source Administrator by choosing Start ® Settings ® Control Panel ® Administrative Tools ® Data Sources.
  2. Choose Add.
  3. Choose the SAP DB ODBC driver and then Finish.
  4. Specify the name of the data source, the name of the database instance, and the name of the database server. Choose Options.
  5. In the Isolation Level field, select the desired lock operation type.
  6. Confirm the windows until the ODBC Data Source Administrator closes.

Result

The next time that you log on to the database server using this data source, the SAP DB ODBC driver functions with the selected lock operation type.

Leaving content frame