question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please publish Maven artifacts for the x86 and x64 auth DLLs

See original GitHub issue

Thanks for publishing Maven artifacts for the SQL Server JDBC driver!

In Atlassian Bitbucket Server, we bundle the JDBC driver jar, and we also bundle the x86 and x64 versions of sqljdbc_auth.dll to facilitate using integrated authentication on Windows. Prior to Microsoft publishing their own jars for the JDBC driver we would manually publish them to our internal Maven repository, along with the DLLs. Now we can use the Microsoft-published jar for the JDBC driver, but we still need to manually publish the auth DLLs.

We use classifiers to differentiate the x86 and x64 DLLs, so our dependencies look like this:

<dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>mssql-jdbc_auth</artifactId>
    <classifier>x64</classifier>
    <type>dll</type>
</dependency>
<dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>mssql-jdbc_auth</artifactId>
    <classifier>x86</classifier>
    <type>dll</type>
</dependency>

Is there any chance Microsoft could start publishing the auth DLLs (and maybe the sqljdbc_xa DLLs for completeness, though we don’t need those)? I assume the DLLs change from time to time, and that would imply it’s important to use the DLL version that matches the JDBC driver version. (That’s why we package the DLLs; that way we’re certain the DLL and driver match.)

Thanks for your consideration!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bturnercommented, Dec 16, 2019

Massive thanks, @ulvii! This will make it much simpler for us to consume newer driver versions directly, rather than needing to re-host parts of them.

0reactions
ulviicommented, Dec 12, 2019

Hi everyone, The x64 and x86 DLLs are uploaded to Maven together with .pdb files. Below is how you’d add them as a dependency:

<dependency>
  <groupId>com.microsoft.sqlserver</groupId>
  <artifactId>mssql-jdbc_auth</artifactId>
  <version>8.1.1.x64-preview</version>
  <type>dll</type>
</dependency>
<dependency>
  <groupId>com.microsoft.sqlserver</groupId>
  <artifactId>mssql-jdbc_auth</artifactId>
  <version>8.1.1.x86-preview</version>
  <type>dll</type>
</dependency>

Closing the issue, please let me know if you have any questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add sqljdbc_auth.dll to my maven project
It's a simple project with using maven. I have problems with sqljdbc_auth.dll. I have added mssql jdbc driver and added a dependency in...
Read more >
All Maven projects start with failure - cannot open zip file
I tried creating a brand new Maven4MyEclipse project, and it immediately shows this same error as well. How do I resolve this? I...
Read more >
Learning the Basics - Gradle User Manual
Publishing a project as module; Understanding Gradle Module Metadata; Signing artifacts ... a Maven compatible artifact repository (e.g: Maven Central).
Read more >
no sapjco3 in java.library.path when using SAP connector in ...
This article provides a solution for an error that states that sapjco3 is missing from java.library.path when deploying in Cloudhub.
Read more >
Upgrading the MS SQL Server JDBC driver in TIBCO Spotfire ...
One DLL file contains native libraries for doing integrated authentication (Kerberos, NTLM). TIBCO Spotfire Server 10.3.9 runs on Java 8, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found