How to set default transaction isolation?

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
dmajkic
Posts: 5
Joined: Thu 01 May 2008 11:20

How to set default transaction isolation?

Post by dmajkic » Wed 04 Aug 2010 14:42

I need to create monitoring app that will just scan and show some tables, and I don't want to interfere with other users.

How can I set default transaction isolation to ReadUncommited?

Is there a way to set this via TSQLConnectionpa rameters?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 05 Aug 2010 08:20

Use the following code:

Code: Select all

CRSQLConnection.Params.Values['DevartSQLServer TransIsolation'] := 'dirtyread';

Post Reply