The application script threw an exception: com.microsoft.sqlserver.jdbc.SQLServerException: The authenticationScheme NTLM is not valid

Which IIQ version are you inquiring about?

8.5

When I am trying to connect external “sqlserver” database from rule using windows authentication when I add the parameter “authenticationScheme=NTLM” in the connection URL getting below error
com.microsoft.sqlserver.jdbc.SQLServerException: The authenticationScheme NTLM is not valid.

Without any parameters also the connection is getting error with invalid user.

Any recommendation on how to connect the database using windows authentication.

Below is the code for reference
String connectionUrl = “jdbc:sqlserver://XXXX;databaseName=IdentityIQPrevalidation;multisubnetfailover=true;sendStringParametersAsUnicode=true;domain=XXXX;integratedSecurity=true;authenticationScheme=NTLM”;
String dbUser = “XXXXXX”;
String dbPass = “XXXXXX”;
connection = DriverManager.getConnection(connectionUrl, dbUser, dbPass);

Hi @bashettyanuroop580 ,

Can you have a look at this link it may help as you are trying to connect db via rule

Followed but getting below error Exception running rule: The application script threw an exception: com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication.