Unexpected Error occurred attempting to open an SQL connection.
class com.healthmarketscience.jackcess.impl.UnsupportedCodecException: Decoding not supported. Please choose a CodecProvider which supports reading the current database encoding.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is a password-protected DB. We connect through UcanAccess from Squirrel SQL. It is not clear how to connect. Are you able to point us in the right direction, i.e. a link to documentation that shows how to write a connection string?
Or is it something that Squirrel SQL developer has to implement?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
... and compile it using: javac -cp "%CLASSPATH%;*" CryptCodecOpener.java
3) Configure Driver in SQuirrel
- Change Driver, Extra Class Path, Add the folder where your 'CryptCodecOpener.class' is located
- Modify your connection string: e.g. "jdbc:ucanaccess://C:\Somewhere\MyDatabase.accdb;showschema=true;jackcessOpener=CryptCodecOpener"
Now you'll be able to connect to your encrypted access database.
Good luck :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unexpected Error occurred attempting to open an SQL connection.
class com.healthmarketscience.jackcess.impl.UnsupportedCodecException: Decoding not supported. Please choose a CodecProvider which supports reading the current database encoding.
We are kind of dead in the water, due to the above error. Any tips on resolving it?
It's likely a encrypted database, isn't it? If so, see how to use the
jackcessOpener parameter on the ucanaccess web site.
Il Mer 21 Set 2022, 22:22 amwfc amwfc@users.sourceforge.net ha scritto:
It is a password-protected DB. We connect through UcanAccess from Squirrel SQL. It is not clear how to connect. Are you able to point us in the right direction, i.e. a link to documentation that shows how to write a connection string?
Or is it something that Squirrel SQL developer has to implement?
When using SQuirrel to connect to an encrypted access database, you have to follow the following steps:
1) Neccessary Libraries:
Download the following Libraries:
ucanaccess-5.0.1.jar
jackcess-4.0.2.jar
hsqldb-2.7.0.jar
commons-lang3-3.12.0.jar
... and to use the encryption feature also these libs:
bcprov-jdk15on-1.70.jar
jackcess-encrypt-4.0.1.jar
Place them in your drivers folder, e.g.
C:\Program Files\Squirrel\drivers
2) Compile your Crypt Codec Opener:
Create a file
CryptCodecOpener.java
(e.g. in "C:\Program Files\Squirrel\drivers")... and compile it using:
javac -cp "%CLASSPATH%;*" CryptCodecOpener.java
3) Configure Driver in SQuirrel
- Change Driver, Extra Class Path, Add the folder where your 'CryptCodecOpener.class' is located
- Modify your connection string: e.g. "
jdbc:ucanaccess://C:\Somewhere\MyDatabase.accdb;showschema=true;jackcessOpener=CryptCodecOpener
"Now you'll be able to connect to your encrypted access database.
Good luck :-)
Too bad :( We do not have software developers for the coding of that.
Uhm, excuse me if I'm being rude, but you don't need a dev to do this.
LoL