Setting MSConnection isolation level programmatically

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
DavidHartley
Posts: 1
Joined: Wed 05 Mar 2008 15:09

Setting MSConnection isolation level programmatically

Post by DavidHartley » Wed 05 Mar 2008 15:14

I have SDAC professional, but I do not have the source code.

How can I set TMSConnection.IsolationLevel from my program, rather than at design time? The compiler does not understand the constant ilIsolated and I cannot cast an integer as TIsolationLevel.

Thanks in advance

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 06 Mar 2008 09:12

You should include the OLEDBAccess unit into the uses clause.

Post Reply