SQL Server LockMode

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
eduardomendes
Posts: 28
Joined: Wed 24 Feb 2010 14:08

SQL Server LockMode

Post by eduardomendes » Mon 15 Mar 2010 20:38

when I try to open a table in SQL Server that is being edited by another User, the following error occurs: "Lock request timeout period exceeded".

UniTable Configuration:
LockMode = lmPessimistic
RefreshOptions = [roBeforeEdit]

In PostgreSQL, it's not happen.

I can open the table, but I can't edit the same record. It's right, but in SQL Server, an error occurs when I try to open the table.

Whats happening?

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Wed 17 Mar 2010 13:41

This may happen if your table does not have Primary Key.

Post Reply