Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us
TABSDatabase.Exclusive
TABSDatabase
Top 


Enables an application to gain sole access to a database.

property Exclusive: Boolean;

Description
Use Exclusive to prevent other applications from accessing a database while this application is using it. Before opening the database, set Exclusive to true. The default value for Exclusive is false, allowing other applications to use the opened database.

When Exclusive is true and the application successfully opens the database, no other application can access it. If the database for which the application has requested exclusive access is already in use by another application, an exception is raised. To handle such exceptions, write an exception handler. All tables in the database are effectively opened exclusively, as other applications would be prevented from opening the database and the tables would be inaccessible.

A table database must be closed before changing the setting of the Exclusive property. Do not set Exclusive to true at design time if you also intend to set the Connected property to true at design time. In this case an exception is raised because the database is already in use by the IDE.

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Dec 04, 2024