Integration Authentication Error Microsoft Sql Server 2017

There are a number of older posts on integrating a database with Knime, however I haven’t found any discussions regarding the latest versions of Java, Knime, and SQL. I have spent days looking at forums here and on StackOverflow and elsewhere trying to connect to a database with Knime, however nothing has worked.

My computer configuration is as follows:

64 bit Operating System
Microsoft SQL Server 2017 (64 bit version)
Microsoft SQL Server Management Studio 17
Microsoft JDBC Driver 7.0 for SQL Server
KNIME 3.7.0 (64 bit version)
Java jre1.8.0_191

So far I’ve tried:

  1. Downloading java versions into both Program Files\Java and Program Files (x86)\Java. Currently I have the java version that is stored in the Program Files directory.
  2. Downloading and unzipping the ‘sqljdbc_7.0.0.0_enu’ JDBC 7.0 Driver. I also tried the JDBC 6.0 Driver, but that didn’t work.
  3. putting sqljdbc_auth.dll in the C\Program Files\Java\jre1.8.0_191\bin and C\Program Files\Java\jre1.8.0_191\lib directories.
  4. Enabling TCP/IP Port in Microsoft SQL Server Management Stuido
  5. configuring Knime’s Database Connector, Database Reader, and Microsoft SQL Server Connector nodes to the following settings:
    Database driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Database URL: jdbc:sqlserver://(localhost); integratedSecurity=true;
    Authentication: Checked ‘Use credentials’ (for Database Reader this feature is blocked out)

When I execute the Database Connector node I get the following error:
ERROR Database Connector 0:2 Execute failed: Could not create connection to database: no sqljdbc_auth in java.library.path

When I execute the Database Reader node I get the following error:
ERROR Database Reader 0:1 Execute failed: This driver is not configured for integrated authentication. ClientConnectionId:4906d2f3-e3df-4016-a383-29840cb4dee2

When I execute the Microsoft SQL Server Connector I get the following error:
ERROR Microsoft SQL Server Connector 0:5 Execute failed: Could not create connection to database: no sqljdbc_auth in java.library.path

It sounds like you installed SQL JDBS on your own. It would be better to use KNIME SQL JDBC istalled from Help/Install New Software…

I went to Help/Install New Software and under Work with: selected KNIME Analytics Platform 3.7 Update Site - http://update.knime.com/analytics-platform/3.7

Then selected

KNIME & Extensions\KNIME Microsoft JDBC Driver for SQL Server

KNIME Labs Extensions\KNIME Microsoft JDBC Driver For SQL Server (Preview)

Sources\Source for KNIME Microsft JDBC Driver For SQL Server

Sources\Source for KNIME Microsft JDBC Driver For SQL Server (Preview)


I installed the software and restarted Knime.

I am using the same selections for my nodes and still receiving the same errors.

I hope you installed JDBC for corresponding DB nodes version (Preview) or the current one.
Also, please publish configuration of the nodes.

I uninstalled the JDBC (Preview) software.

Here are the configurations for Database Reader and Database Connector:

Here’s my Knime installed software:

Here’s my Knime Database Drivers:

The path to the driver should be like mine:

I configured my Database Connector node like this:

And I received the following error message:

ERROR Database Connector 0:2 Execute failed: Could not create connection to database: Driver “org.postgresql.Driver” does not accept URL: jdbc:postgresql://localhost;

Could you show me how you have your node configured?

1 Like

This is not SQL server driver.

I have come across this same issue. Was this resolved?

I am having this problem, were you able to resolve it? If so, how?

Hi there @noemireyes,

welcome to KNIME Community Forum!

So you are trying to connect to SQL Server that is located on your computer. I’m I right?

Anyways if you can share a bit more info that would help in troubleshooting. What steps have you performed? What KNIME version you got? What database Integration are you using? What URL have you tried? What error are you seeing?

Additionally here is a link to Database Guide you might find useful :wink:

Br,
Ivan

1 Like

Hi,
just had the same problem but then remembered that I’ve solved this earlier :wink:

You need to open the knime.ini in the installation directory of knime (c:\program files\knime\…).
Add a line like this

-Djava.library.path=D:\Microsoft JDBC Driver 7.4 for SQL Server\sqljdbc_7.4\deu\auth\x64

Replace the path “D:\Microsoft JDBC Driver 7.4 for SQL Server\sqljdbc_7.4\deu\auth\x64” with the one to the “auth” subfolder of your JDBC Driver for SQL Server, either to the 32bit or 64bit version.
Restart KNIME.

Good luck!

1 Like

Had a similar problem with MS SQL Server 2017, adding the instance to the connection string helped
jdbc:jtds:sqlserver://localhost:1433/;instance=SQLSERVER2017