Board index » delphi » Table pack error (was: packing a database [delphi])

Table pack error (was: packing a database [delphi])

Quote
In article <01HS8L2D2KXE9X7...@vms.uci.kun.nl>,  <W.dHoll...@URO.AZN.NL> wrote:

<chop>

Quote

>'Table Pack Error 10253: Table cannot be opened for exclusive use.'

>I've looked in the Delphi references on the exlusive property, but I
>could not find any relevant information to solve this problem. Does anybody
>know how to solve this problem?

Something somewhere is already using the table. Make sure that any table or
query components you are using have their Active property set to False. Also
it is not open in the database desktop or elsewhere.

Ken Devory Jr.
kdev...@cnj.digex.net

 

Re:Table pack error (was: packing a database [delphi])


Quote
W.dHoll...@URO.AZN.NL wrote:

[...]
: I also needed a utility like this to pack Dbase databases. However,  when I
: try the example that is delivered with the utility I get the message:

: 'Table Pack Error 10253: Table cannot be opened for exclusive use.'

: I've looked in the Delphi references on the exlusive property, but I
: could not find any relevant information to solve this problem. Does anybody
: know how to solve this problem?

As in dBASE, in a Delphi application you must be able to open the dBASE
table for exclusive use before you will be able to effect a PACK. In
Delphi, this is a matter of setting the Exclusive property of the TTable
component representing the table to True. You cannot change this property
value if the Active property is true. And, if you deactivate the TTable
and change this property, you will not be able to reactivate the TTable if
another user on a network currently has the table open (this consideration
only applies if you are operating in a multi-user environment and the
table file resides on a network drive).

--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Steve Koterski               _/   The opinions expressed here are    _/
_/ koter...@borland.com         _/         exclusively my own           _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Other Threads