Board index » delphi » Using ADO with Encrypted/Password Protected Access databases

Using ADO with Encrypted/Password Protected Access databases

Hi All,
    I'm having a little trouble using TADOConnection with an encrypted and
password protected Access 2000 database. I've set the UserName and Password
string variables correctly in the TADOConnection.OnLogin event handler, but
get an error stating "Not a valid password".

Is there maybe a provider specific property or another mechanism for giving
the correct database-wide password?

Also, I'm a bit baffled about the encryption. Am I right in assuming that
all fields values are encrypted when stored and decrypted when retrieved
(on-the-fly), or is the encryption process a "one-off" process as with
compacting a database?

Thanks,
Ben Fidge

 

Re:Using ADO with Encrypted/Password Protected Access databases


OnLogin is executed AFTER log-in and can be used to do user logging.
You should use the OnWillConnect event instead !

"Egdif" <ben.fi...@stylusnet.com> schreef in bericht
news:5XXA6.11446$s02.21006@NewsReader...

Quote
> Hi All,
>     I'm having a little trouble using TADOConnection with an encrypted and
> password protected Access 2000 database. I've set the UserName and
Password
> string variables correctly in the TADOConnection.OnLogin event handler,
but
> get an error stating "Not a valid password".

> Is there maybe a provider specific property or another mechanism for
giving
> the correct database-wide password?

> Also, I'm a bit baffled about the encryption. Am I right in assuming that
> all fields values are encrypted when stored and decrypted when retrieved
> (on-the-fly), or is the encryption process a "one-off" process as with
> compacting a database?

> Thanks,
> Ben Fidge

Other Threads