| View previous topic :: View next topic |
| Author |
Message |
Mike H Guest
|
Posted: Fri Dec 08, 2006 6:35 am Post subject: Problem with ADO access permissions. |
|
|
As a part of its startup my program retrieves data from an Access database
using normal ADO commands. I have used cmReadWrite as the connection mode
for these operations.
At a later point when attempting to compact the database in code I close the
connection and then attempt the compaction. I receive an error message at
this point telling me the the "database has been opened in exclusive mode by
Admin on XX. Please try again Later."
I am obviously using the wrong connection mode as I wish to open the
database in non-exclusive mode so it can be accessed from several locations.
I have tried using cmShareDenyNone without success and have not been able to
determine what connection mode I should be using.
Thanks for any and all help given with this problem.
Kindest Regards,
Mike Henry |
|
| Back to top |
|
 |
Brian Bushay TeamB Guest
|
Posted: Fri Dec 08, 2006 9:11 am Post subject: Re: Problem with ADO access permissions. |
|
|
| Quote: | As a part of its startup my program retrieves data from an Access database
using normal ADO commands. I have used cmReadWrite as the connection mode
for these operations.
At a later point when attempting to compact the database in code I close the
connection and then attempt the compaction. I receive an error message at
this point telling me the the "database has been opened in exclusive mode by
Admin on XX. Please try again Later."
I am obviously using the wrong connection mode as I wish to open the
database in non-exclusive mode so it can be accessed from several locations.
I have tried using cmShareDenyNone without success and have not been able to
determine what connection mode I should be using.
Thanks for any and all help given with this problem.
cmShareDenyNone is what you want to use for your application but a compact |
database needs to have exclusive access to your database so you will have to
close all other connections before you run your compact database.
--
Brian Bushay (TeamB)
Bbushay (AT) NMPLS (DOT) com |
|
| Back to top |
|
 |
|