Page 1 of 1

locking multible DB Entries

Posted: Mon 23 Jun 2008 08:52
by andi_d
Using Delphi 5
SDAC Version 4.50.0.35

Using TMsQuery Component: Is it possible to lock multible DB-Entires an the same time?

If yes - how to do??

Reason: User makes a query on database. Because of special reasons the whole query result should not be changed by another user.

Thanks for helping!

Andi

Posted: Mon 23 Jun 2008 13:57
by Antaeus
I can suggest running queries withing a transaction with the appropriate isolation level (e.g. ilIsolated). For more information about isolation levels see the TCustomMSConnection.IsolationLevel topic in SDAC help.