Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

Load Native JDBC Library #321

Open
adamretter opened this issue Feb 18, 2020 · 0 comments
Open

Load Native JDBC Library #321

adamretter opened this issue Feb 18, 2020 · 0 comments

Comments

@adamretter
Copy link

adamretter commented Feb 18, 2020

Some JDBC drivers require a native library component, for example MSSQL JDBC Driver when using Integrated Authentication.

This can be done by placing sqljdbc_auth.dll from the MSSQL JDBC zip download into D2RQ's lib\ folder, alongside mssql-jdbc-7.4.1.jre8-shaded.jar.

D2RQ's startup scripts then need a small modification to see the native library. For example, I changed the following line in generate-mapping.bat from:

java -cp %CP% -Xmx1G "-Dlog4j.configuration=%LOGCONFIG%" d2rq.generate_mapping %*

to:

java -cp %CP% -Xmx1G "-Dlog4j.configuration=%LOGCONFIG%" -Djava.library.path="%D2RQ_ROOT%lib" d2rq.generate_mapping %*

After which you can use Integrated Authentication via the JDBC connection string:

jdbc:sqlserver://localhost;databaseName=MyDb;integratedSecurity=true;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant