G
Guest
I have a (VB) application that creates a database with user-level security.
The user can choose when creating the database whether to encrypt it or not.
When I programmatically compact the database using the JRO CompactDatabase
routine, JRO decrypts the database. I would like the compacted DB to be
encrypted if the original DB was encrypted. And of course, I would like the
compacted DB to be unencrypted if the original DB was unencrypted.
One solution would be for me to find out if the original DB was encrypted
and then explicitely tell JRO whether or not to encrypt the compacted DB. But
I don't know how to tell if the original DB was encrypted. I was hoping that
I could look up the value of "Jet OLEDB:Encrypt Database" in the
ConnectionString, but that is set to False even if the DB is encrypted.
Any ideas?
Thanks!
--Miguel
The user can choose when creating the database whether to encrypt it or not.
When I programmatically compact the database using the JRO CompactDatabase
routine, JRO decrypts the database. I would like the compacted DB to be
encrypted if the original DB was encrypted. And of course, I would like the
compacted DB to be unencrypted if the original DB was unencrypted.
One solution would be for me to find out if the original DB was encrypted
and then explicitely tell JRO whether or not to encrypt the compacted DB. But
I don't know how to tell if the original DB was encrypted. I was hoping that
I could look up the value of "Jet OLEDB:Encrypt Database" in the
ConnectionString, but that is set to False even if the DB is encrypted.
Any ideas?
Thanks!
--Miguel