Accessing MS SQL Server using Windows Authentication

Applies to: Denodo 8.0 , Denodo 7.0 , Denodo 6.0
Last modified on: 25 Feb 2021
Tags: JDBC data sources NTLM SQL Server

Download document

You can translate the document:


This document describes how to use Windows Authentication to access SQL Server using a JDBC data source.

These steps are only needed when we do not want to use a login and a password in our SQL Server JDBC data source and we want to obtain those credentials from the operating system. When using this approach, the credentials from the user that started the Denodo VDP service will be the ones used to access the SQL Server data source.

The configuration with the jTDS and the Microsoft drivers will be explained.


Using the jTDS JDBC driver

Before creating a data source to a MS SQL Server database from Virtual DataPort using the jTDS driver and Windows Authentication follow these steps:

  1. Download the latest jTDS driver version from here
  2. Extract from the distribution the file ntlmauth.dll. Extract the file that matches the target architecture. For instance, for a 64-bit operating system, extract the file under x64/SSO.
  3. Copy the file under <DENODO_HOME>/extensions/thirdparty/dll.
  4. Create a new JDBC data source in the Virtual DataPort Administration Tool or the Web Design Studio.
  5. Select DB Adapter: MS SQL Server 2000/2005/2008/2008R2/2012 (JTDS).
  6. Database URI:


  1. No login or password is needed. Virtual DataPort will use the credentials of the user that started the VDP server.

Using the Microsoft JDBC driver

To access MS SQL Server from VDP using the Microsoft driver and Windows Authentication:

  1. Download the driver from

  1. Unzip the distribution file and copy sqljdbc_xx./enu/auth/x86|x64/sqljdbc_auth.dll under <DENODO_HOME>/extensions/thirdparty/dll.
  2. For Denodo 7 and newer versions, skip steps 3 and 6. For Denodo 6 and older versions, copy the 'mssql-jdbc-6.x'.jar file to DENODO_HOME/extensions/thirdparty/lib. If your Virtual DataPort server is running, restart the server so the new driver is added to the classpath. If you do not restart the server an additional configuration property will have to be set when creating the JDBC data source.
  1. Create a new JDBC data source in the Virtual DataPort Administration Tool or the Web Design Studio.
  2. Select DB Adapter: MS SQL Server 2000/2005/2008/2008R2/2012/2014/2016/2017 (MS Driver)
  3. For Denodo 7 and newer versions skip this step. If you did not restart the server, browse to the folder where you saved the jar file and select it as Driver class path (optional). If you did restart the server after adding the driver just leave this field blank.
  4. Database URI:


  1. No login or password is needed. Virtual DataPort will use credentials of the user that started the VDP server.
  2. As the Microsoft driver is provided in Denodo 7 and newer versions, you could skip step 3 and 6 when connecting MS SQL Server in recent Denodo versions.

When using the Microsoft Diver, the URI parameter IntegratedSecurity=true indicates that Windows credentials will be used by SQL Server to authenticate the user of the application.

If "true" the JDBC driver searches the local computer credential cache for credentials that have already been provided at the computer or network logon. If "false" the username and password must be supplied.

This means that the credentials used to authenticate to SQL Server will be the credentials used to log in the machine where the VDP Server is installed or the credentials used to run the VDP Server as a Windows Service.


Ask a question
You must sign in to ask a question. If you do not have an account, you can register here

Featured content


Ready for more? Great! We offer a comprehensive set of training courses, taught by our technical instructors in small, private groups for getting a full, in-depth guided training in the usage of the Denodo Platform. Check out our training courses.