Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread How to obtain a whole database lock?
Tue, Sep 3 2013 12:26 PMPermanent Link

Richard

I need to lock the whole database while I alter tables, indexes etc.

I am using Delphi and would like ideally

EDBDatabase.Exclusive:=True;
try
 EDBDatabase.Open;
 try
   // alter tables
   // create indexes
   // backup etc.
 finally
   EDBDatabase.Close;
 end;
except
 on E: EUnableToLockDatabase do
   ShowMessage('Database Is Currently In Use, Unable To Proceed');
end;
Tue, Sep 3 2013 2:15 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< I need to lock the whole database while I alter tables, indexes etc. I am
using Delphi and would like ideally >>

I'll see what I can do.  It's not difficult to implement since EDB already
supports opening databases exclusively in the engine.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Sep 4 2013 4:56 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

><< I need to lock the whole database while I alter tables, indexes etc. I am
>using Delphi and would like ideally >>
>
>I'll see what I can do. It's not difficult to implement since EDB already
>supports opening databases exclusively in the engine.

If that allowed multiple cursors on a table that might make a great single user switch.

Roy
Wed, Sep 11 2013 1:33 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< If that allowed multiple cursors on a table that might make a great
single user switch. >>

I don't have any idea what that means...care to elaborate ? Smile

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Sep 12 2013 3:15 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

<< If that allowed multiple cursors on a table that might make a great
>single user switch. >>
>
>I don't have any idea what that means...care to elaborate ? Smile

In my app I have a table Companies - that will be opened and displayed on its own page, I may have a second instance open (luCompanies) to check / display the parent company for a company, and a third instance open to show competitors etc

Roy Lambert
Tue, Sep 17 2013 1:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< In my app I have a table Companies - that will be opened and displayed on
its own page, I may have a second instance open (luCompanies) to check /
display the parent company for a company, and a third instance open to show
competitors etc >>

Ahhh, yes, that would still be allowed.

Tim Young
Elevate Software
www.elevatesoft.com
Image