Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Application with and without transactions
Tue, Jul 27 2010 1:34 PMPermanent Link

Jose Eduardo Helminsky

HPro Informatica

Tim

I have two situations:

First
TableList := TStringList.Create;
TableList.Add('MyTable);
Database.StartTransaction(TableList);
Table.Delete;
Database.Commit.

Second
Table.Delete;

In the first case only the table MyTable will be locked during transaction.
In the second, there is no transaction and then the engine will put a lock
on entire database ?

Eduardo

Tue, Jul 27 2010 1:54 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Eduardo

Only the table you're deleting from will be locked.

Roy Lambert [Team Elevate]

Wed, Jul 28 2010 4:34 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Only the table you're deleting from will be locked. >>

And I would like to add - only *very* briefly.

--
Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jul 29 2010 6:34 AMPermanent Link

Jose Eduardo Helminsky

HPro Informatica

Roy and Tim

Thanks for the answers.

I don´t know where my head was when I asked this. This is so basic but
sometimes I fall just with small rocks.

Thanks anyway.

Eduardo

Image