MSSQL Express with Window Authentication

I am facing problem trying to set up connection with MSSQL Express
here is the Error code

org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (This driver is not configured for integrated authentication.)
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(
	at org.apache.commons.dbcp.BasicDataSource.getConnection(
	at com.inductiveautomation.ignition.gateway.datasource.DatasourceImpl.getConnectionInternal(
	at com.inductiveautomation.ignition.gateway.datasource.DatasourceImpl.runTest(
	at com.inductiveautomation.ignition.gateway.datasource.DatasourceManagerImpl$FaultedDatasourceRetryer.lambda$newRetryRunnable$0(
	at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$
	at java.util.concurrent.Executors$ Source)
	at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$ Source)
	at Source)
Caused by: This driver is not configured for integrated authentication.
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(
	at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(
	... 12 more

7.9.9 (b2018081621)
Oracle Corporation 1.8.0_191

I had downloaded the driver and copy to C:\Program Files\Inductive Automation\Ignition\lib\

the documentation said

The account used to connect will be the account that Ignition is running under in the services menu. To setup Ignition to logon using the right Windows account, open the Services Control Panel from Start > Control Panel > Administrative Tools > Services

Right-click the Ignition service and choose Properties.

Select the Log On tab.

Choose the This account radio button and enter in your Windows username and password. --> ???

Click OK to save.

Now restart the Ignition service to make this change take effect. Click the Action > Restart button in the menubar to restart the Ignition service (or your can stop and start from the right-click menu).

Note :I am using trial version


You need to add the Microsoft authentication libraries to your gateway to add support for integrated authentication.
Download the SQL Server JDBC driver package from Microsoft that matches the JDBC driver running on the Gateway.

In the driver you download there should be an auth folder with a dll sqljdbc_auth.dll. Drop this into your lib\ folder of your gateway install and restart the gateway. You only need to put the auth dll in the lib folder.

That will configure the driver. After that you should add the correct properties to the connection settings.

After restarting the Gateway, Ignition will then connect to the DB as whatever account the Ignition service is running as.


I don’t see any Jar file listed. Any setting I need to do?


Now I have different error

Cannot create PoolableConnectionFactory (Cannot open database “IgnitionTest” requested by the login. The login failed. ClientConnectionId:2f8351e1-7865-480e-8f72-bcc587b992d9)


That is an error direct from MSSQL server. You need to configure the login account (Ignition service account) to have access to the “IgnitionTest” database. SQL server permissions have lots of layers and are annoying.

Where is this suppose to be?

I had been struggling to learn Inductive Scada



You need to configure the account you are using to connect in SQL Server. This is outside of Ignition. It appears you setup Ignition connect to the server, but on the database server you need to setup that users permissions. You would need to refer to the Microsoft docs for this.

This video shows the basic process, but every environment is a bit different.

The sqlserver express is set up with window authentication, not mixed mode or sqlmode.

Never Mind. I git it done with the Ignition service with Sql Window Authentication.

Thanks Ryan for your help.