Menu ▾ ▴

#7 TAccessDbCreator.CompressDatabase probably cannot open a database that has a password

open
nobody
DbCreator (6)
2026-09-27
2026-09-27
No

Suspected, not reproduced. DBEngine.CompactDatabase takes five parameters (SrcName, DstName, DstLocale, Options, SrcLocale); CompressDatabase (dbcreator/u_dzDbCreatorCreateAccess.pas) passes four and puts the password into DstLocale, which sets it on the compacted copy. The source's password would have to go into the fifth parameter as ;pwd=..., so compacting a database that already has a password should fail when DAO opens it.

Needs confirming on a machine with DAO registered. A fix also needs to know whether the source's password is the same as the new one.

Also tracked as issue 140 in dzlib's ISSUES.md.

Discussion


Log in to post a comment.