Troubleshooting
Problem
When creating a data source, there is an option to manually specify the Isolation Level for that data source (e.g. Read Uncommitted). If you set this, when running Compatible Query Mode reports against the data source you see the correct isolation level used. If you run a Dynamic Query Mode report against the same data source, it does not set the specified Isolation level.
Cause
As documented in the IBM Cognos Business Intelligence Administration and Security Guide under the Data Source Creation section, isolation levels are not implemented for JDBC connections.
Resolving The Problem
An alternate way to set the isolation level is to add an Open Connection command block to the data source which issues a command specific to your database to set the transaction isolation level. Use the following steps:
1) Launch IBM Cognos Administration -> Configuration -> Data Source Connections
2) Click on the data source to drill into it, then click on the Properties icon for the Connection object.
3) Expand the Commands link, then click the "Set..." link for the "Open connection commands" entry
4) Paste the following XML into the XML Database Commands box:
.
<commandBlock>
<commands>
<sqlCommand>
<sql>set transaction isolation level read uncommitted</sql>
</sqlCommand>
</commands>
</commandBlock>
.
5) Click OK twice to save the changes.
Note that the command syntax here is specific to Microsoft SQL Server - replace "set transaction isolation level read uncommitted" with the appropriate command to set the isolation level for your database.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21665985