<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1026 "Unable to get managed connection for &lt;datasource&gt;" error thrown when trying to connect to a SQL Server database</title><link>https://community.appian.com/support/w/kb/251/kb-1026-unable-to-get-managed-connection-for-datasource-error-thrown-when-trying-to-connect-to-a-sql-server-database</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1026 "Unable to get managed connection for &lt;datasource&gt;" error thrown when trying to connect to a SQL Server database</title><link>https://community.appian.com/support/w/kb/251/kb-1026-unable-to-get-managed-connection-for-datasource-error-thrown-when-trying-to-connect-to-a-sql-server-database</link><pubDate>Mon, 30 Jul 2018 03:41:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6977eb85-f229-469e-9177-9b07c6fe1d7b</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/251/kb-1026-unable-to-get-managed-connection-for-datasource-error-thrown-when-trying-to-connect-to-a-sql-server-database#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 7/30/2018 3:41:44 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;SQL Authentication is enabled on SQL Server yet Appian SQL Authentication fails. This can be seen in the application server log with a large stack trace, but it will contain the following important statements:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for jdbc/&amp;lt;DataSource&amp;gt;
...
Caused by: javax.resource.ResourceException: IJ000453: Unable to get managed connection for jdbc/&amp;lt;DataSource&amp;gt;
...
Caused by: javax.resource.ResourceException: IJ000658: Unexpected throwable while trying to create a connection: null
...
Caused by: javax.resource.ResourceException: Could not create connection
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;There are three possible causes for this issue:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The SQL Server driver is incorrectly declared in &lt;strong&gt;module.xml&lt;/strong&gt; (JBoss only).
&lt;ul&gt;
&lt;li&gt;The SQL Server driver is present in the &lt;code&gt;&amp;lt;JBOSS_HOME&amp;gt;\modules\com\microsoft\sqlserver\jdbc\main&lt;/code&gt;directory, however it is incorrectly declared in the &lt;strong&gt;module.xml&lt;/strong&gt; file, declaring the &lt;strong&gt;module.xml&lt;/strong&gt; file for the wrong RDBMS.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Required SQL Server libraries Drivers for authentication (&lt;strong&gt;sqljdbc_auth.dll&lt;/strong&gt; and &lt;strong&gt;sqljdbc_xa.dll&lt;/strong&gt;) are missing (JBoss only).
&lt;ul&gt;
&lt;li&gt;The correct driver package was downloaded from Microsoft, however additional libraries (&lt;strong&gt;sqljdbc_auth.dll&lt;/strong&gt; and &lt;strong&gt;sqljdbc_xa.dll&lt;/strong&gt;) are missing, or the directory in which these files live is not correctly referenced in the PATH environment variable.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;SQL Server Browser is not running.
&lt;ul&gt;
&lt;li&gt;The SQL Server rejected the request to connect on the default port. A SQL Server named instance is defined in &lt;strong&gt;*-ds.xml&lt;/strong&gt; but Appian is unable to map it to a hostname and port.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;For Cause 1, update the &lt;strong&gt;module.xml&lt;/strong&gt; to use the correct syntax for SQL Server and the correct path for the driver. Steps on how to configure &lt;strong&gt;module.xml&lt;/strong&gt; can be found in &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Relational_Databases.html#For_JBoss"&gt;Configuring Relational Databases&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For Cause 2, perform the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the directory containing &lt;strong&gt;sqljdbc_auth.dll&lt;/strong&gt; and &lt;strong&gt;sqljdbc_xa.dll&lt;/strong&gt; to the PATH environment variable.&lt;/li&gt;
&lt;li&gt;Restart JBoss.&lt;/li&gt;
&lt;li&gt;If the error still occurs after restarting JBoss, perform the following:
&lt;ol&gt;
&lt;li&gt;Add the directory to &lt;code&gt;java.library.path&lt;/code&gt; using &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_JBoss.html#Performance_and_Other_JVM_Settings"&gt;custom JVM settings&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Add the following line to &lt;strong&gt;standalone.custom.bat&lt;/strong&gt; (located in &lt;code&gt;&amp;lt;JBOSS_HOME&amp;gt;\bin&lt;/code&gt;), replacing &lt;code&gt;&amp;lt;JBOSS-HOME&amp;gt;&lt;/code&gt;` with the directory of where JBoss is installed:&lt;br /&gt;
&lt;pre&gt;set CUSTOM_JAVA_OPTS=-Djava.library.path=&amp;quot;&amp;lt;JBOSS-HOME&amp;gt;/modules/com/microsoft/sqlserver/jdbc/main&amp;quot;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Use forward slashes (/) in the above command only.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If using JBoss as a Windows Service, run it as the Windows user used to log in. Also, uninstall and reinstall the JBoss Windows Service for changes to take effect.&lt;/p&gt;
&lt;p&gt;For Cause 3, enable &lt;strong&gt;SQL Server Browser&lt;/strong&gt; in &lt;strong&gt;SQL Server Configuration Manager&lt;/strong&gt; under &lt;strong&gt;SQL Server Services&lt;/strong&gt; to allow the named instance to resolve to a hostname and port. Do not include the port in the connection URL if &lt;code&gt;&amp;lt;HOSTNAME&amp;gt;/&amp;lt;NAMEDINSTANCE&amp;gt;&lt;/code&gt; is used.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487075921186v1.png"&gt;&lt;img src="/resized-image/__size/1200x960/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487075921186v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="workaround"&gt;Workaround&lt;/h2&gt;
&lt;p&gt;If desired, integrated authentication can be turned off. This workaround should not be used for users that want to configure integrated security with SQL Server. Make the following changes in the &lt;strong&gt;appian-ds.xml&lt;/strong&gt; file for this datasource to switch to SQL Server Authentication.&lt;/p&gt;
&lt;p&gt;For a URL based connection string, add &lt;strong&gt;;integratedSecurity=false&lt;/strong&gt; (including the semicolon) at the end of the URL after the &lt;code&gt;databasename&lt;/code&gt; property. The connection string should now look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;xa-datasource-property name=&amp;quot;URL&amp;quot;&amp;gt;jdbc:sqlserver://sqlserver.example.com:1433;databaseName=MsSqlForAppian;integratedSecurity=false&amp;lt;/xa-datasource-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For &lt;code&gt;&amp;lt;xa-datasource-property&amp;gt;&lt;/code&gt; tag-based connection parameters, set the &lt;code&gt;IntegratedSecurity&lt;/code&gt; property to &lt;strong&gt;false&lt;/strong&gt;, so contents of the &lt;code&gt;&amp;lt;xa-datasource&amp;gt;&lt;/code&gt;should now look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;xa-datasource-property name=&amp;quot;ServerName&amp;quot;&amp;gt;sqlserver.example.com&amp;lt;/xa-datasource-property&amp;gt;
&amp;lt;xa-datasource-property name=&amp;quot;PortNumber&amp;quot;&amp;gt;1433&amp;lt;/xa-datasource-property&amp;gt;
&amp;lt;xa-datasource-property name=&amp;quot;DatabaseName&amp;quot;&amp;gt;MsSqlForAppian&amp;lt;/xa-datasource-property&amp;gt;
&amp;lt;xa-datasource-property name=&amp;quot;IntegratedSecurity&amp;quot;&amp;gt;false&amp;lt;/xa-datasource-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using SQL Server as a data source and using an application server on a Windows-based operating system.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: sql server, database, application server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1026 "Unable to get managed connection for &lt;datasource&gt;" error thrown when trying to connect to a SQL Server database</title><link>https://community.appian.com/support/w/kb/251/kb-1026-unable-to-get-managed-connection-for-datasource-error-thrown-when-trying-to-connect-to-a-sql-server-database/revision/1</link><pubDate>Tue, 14 Feb 2017 12:39:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6977eb85-f229-469e-9177-9b07c6fe1d7b</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/251/kb-1026-unable-to-get-managed-connection-for-datasource-error-thrown-when-trying-to-connect-to-a-sql-server-database#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 2/14/2017 12:39:27 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;SQL Authentication is enabled on SQL Server yet Appian SQL Authentication fails. This can be seen in the application server log with a large stack trace, but it will contain the following important statements:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for jdbc/&amp;lt;DataSource&amp;gt;
...
Caused by: javax.resource.ResourceException: IJ000453: Unable to get managed connection for jdbc/&amp;lt;DataSource&amp;gt;
...
Caused by: javax.resource.ResourceException: IJ000658: Unexpected throwable while trying to create a connection: null
...
Caused by: javax.resource.ResourceException: Could not create connection
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;There are three possible causes for this issue:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The SQL Server driver is incorrectly declared in &lt;strong&gt;module.xml&lt;/strong&gt; (JBoss only).
&lt;ul&gt;
&lt;li&gt;The SQL Server driver is present in the &lt;code&gt;&amp;lt;JBOSS_HOME&amp;gt;\modules\com\microsoft\sqlserver\jdbc\main&lt;/code&gt;directory, however it is incorrectly declared in the &lt;strong&gt;module.xml&lt;/strong&gt; file, declaring the &lt;strong&gt;module.xml&lt;/strong&gt; file for the wrong RDBMS.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Required SQL Server libraries Drivers for authentication (&lt;strong&gt;sqljdbc_auth.dll&lt;/strong&gt; and &lt;strong&gt;sqljdbc_xa.dll&lt;/strong&gt;) are missing (JBoss only).
&lt;ul&gt;
&lt;li&gt;The correct driver package was downloaded from Microsoft, however additional libraries (&lt;strong&gt;sqljdbc_auth.dll&lt;/strong&gt; and &lt;strong&gt;sqljdbc_xa.dll&lt;/strong&gt;) are missing, or the directory in which these files live is not correctly referenced in the PATH environment variable.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;SQL Server Browser is not running.
&lt;ul&gt;
&lt;li&gt;The SQL Server rejected the request to connect on the default port. A SQL Server named instance is defined in &lt;strong&gt;*-ds.xml&lt;/strong&gt; but Appian is unable to map it to a hostname and port.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;For Cause 1, update the &lt;strong&gt;module.xml&lt;/strong&gt; to use the correct syntax for SQL Server and the correct path for the driver. Steps on how to configure &lt;strong&gt;module.xml&lt;/strong&gt; can be found in &lt;a href="https://docs.appian.com/suite/help/17.1/Configuring_Relational_Databases.html#For_JBoss"&gt;Configuring Relational Databases&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For Cause 2, perform the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the directory containing &lt;strong&gt;sqljdbc_auth.dll&lt;/strong&gt; and &lt;strong&gt;sqljdbc_xa.dll&lt;/strong&gt; to the PATH environment variable.&lt;/li&gt;
&lt;li&gt;Restart JBoss.&lt;/li&gt;
&lt;li&gt;If the error still occurs after restarting JBoss, perform the following:
&lt;ol&gt;
&lt;li&gt;Add the directory to &lt;code&gt;java.library.path&lt;/code&gt; using &lt;a href="https://docs.appian.com/suite/help/17.1/Configuring_JBoss.html#Performance_and_Other_JVM_Settings"&gt;custom JVM settings&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Add the following line to &lt;strong&gt;standalone.custom.bat&lt;/strong&gt; (located in &lt;code&gt;&amp;lt;JBOSS_HOME&amp;gt;\bin&lt;/code&gt;), replacing &lt;code&gt;&amp;lt;JBOSS-HOME&amp;gt;&lt;/code&gt;` with the directory of where JBoss is installed:&lt;br /&gt;
&lt;pre&gt;set CUSTOM_JAVA_OPTS=-Djava.library.path=&amp;quot;&amp;lt;JBOSS-HOME&amp;gt;/modules/com/microsoft/sqlserver/jdbc/main&amp;quot;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Use forward slashes (/) in the above command only.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If using JBoss as a Windows Service, run it as the Windows user used to log in. Also, uninstall and reinstall the JBoss Windows Service for changes to take effect.&lt;/p&gt;
&lt;p&gt;For Cause 3, enable &lt;strong&gt;SQL Server Browser&lt;/strong&gt; in &lt;strong&gt;SQL Server Configuration Manager&lt;/strong&gt; under &lt;strong&gt;SQL Server Services&lt;/strong&gt; to allow the named instance to resolve to a hostname and port. Do not include the port in the connection URL if &lt;code&gt;&amp;lt;HOSTNAME&amp;gt;/&amp;lt;NAMEDINSTANCE&amp;gt;&lt;/code&gt; is used.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487075921186v1.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487075921186v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="workaround"&gt;Workaround&lt;/h2&gt;
&lt;p&gt;If desired, integrated authentication can be turned off. This workaround should not be used for users that want to configure integrated security with SQL Server. Make the following changes in the &lt;strong&gt;appian-ds.xml&lt;/strong&gt; file for this datasource to switch to SQL Server Authentication.&lt;/p&gt;
&lt;p&gt;For a URL based connection string, add &lt;strong&gt;;integratedSecurity=false&lt;/strong&gt; (including the semicolon) at the end of the URL after the &lt;code&gt;databasename&lt;/code&gt; property. The connection string should now look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;xa-datasource-property name=&amp;quot;URL&amp;quot;&amp;gt;jdbc:sqlserver://sqlserver.example.com:1433;databaseName=MsSqlForAppian;integratedSecurity=false&amp;lt;/xa-datasource-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For &lt;code&gt;&amp;lt;xa-datasource-property&amp;gt;&lt;/code&gt; tag-based connection parameters, set the &lt;code&gt;IntegratedSecurity&lt;/code&gt; property to &lt;strong&gt;false&lt;/strong&gt;, so contents of the &lt;code&gt;&amp;lt;xa-datasource&amp;gt;&lt;/code&gt;should now look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;xa-datasource-property name=&amp;quot;ServerName&amp;quot;&amp;gt;sqlserver.example.com&amp;lt;/xa-datasource-property&amp;gt;
&amp;lt;xa-datasource-property name=&amp;quot;PortNumber&amp;quot;&amp;gt;1433&amp;lt;/xa-datasource-property&amp;gt;
&amp;lt;xa-datasource-property name=&amp;quot;DatabaseName&amp;quot;&amp;gt;MsSqlForAppian&amp;lt;/xa-datasource-property&amp;gt;
&amp;lt;xa-datasource-property name=&amp;quot;IntegratedSecurity&amp;quot;&amp;gt;false&amp;lt;/xa-datasource-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using SQL Server as a data source and using an application server on a Windows-based operating system.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: sql server, database, application server&lt;/div&gt;
</description></item><item><title>KB-1026 "Unable to get managed connection for &lt;datasource&gt;" error thrown when trying to connect to a SQL Server database</title><link>https://community.appian.com/support/w/kb/251/kb-1026-unable-to-get-managed-connection-for-datasource-error-thrown-when-trying-to-connect-to-a-sql-server-database/revision/2</link><pubDate>Tue, 14 Feb 2017 08:02:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6977eb85-f229-469e-9177-9b07c6fe1d7b</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/251/kb-1026-unable-to-get-managed-connection-for-datasource-error-thrown-when-trying-to-connect-to-a-sql-server-database#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Nick Vigilante on 2/14/2017 8:02:46 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;SQL Authentication is enabled on SQL Server yet Appian SQL Authentication fails. This can be seen in the application server log with a large stack trace, but it will contain the following important statements:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for jdbc/&amp;lt;DataSource&amp;gt;
...
Caused by: javax.resource.ResourceException: IJ000453: Unable to get managed connection for jdbc/&amp;lt;DataSource&amp;gt;
...
Caused by: javax.resource.ResourceException: IJ000658: Unexpected throwable while trying to create a connection: null
...
Caused by: javax.resource.ResourceException: Could not create connection
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;There are three possible causes for this issue:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The SQL Server driver is incorrectly declared in &lt;strong&gt;module.xml&lt;/strong&gt; (JBoss only).
&lt;ul&gt;
&lt;li&gt;The SQL Server driver is present in the &lt;code&gt;&amp;lt;JBOSS_HOME&amp;gt;\modules\com\microsoft\sqlserver\jdbc\main&lt;/code&gt;directory, however it is incorrectly declared in the &lt;strong&gt;module.xml&lt;/strong&gt; file, declaring the &lt;strong&gt;module.xml&lt;/strong&gt; file for the wrong RDBMS.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Required SQL Server libraries Drivers for authentication (&lt;strong&gt;sqljdbc_auth.dll&lt;/strong&gt; and &lt;strong&gt;sqljdbc_xa.dll&lt;/strong&gt;) are missing (JBoss only).
&lt;ul&gt;
&lt;li&gt;The correct driver package was downloaded from Microsoft, however additional libraries (&lt;strong&gt;sqljdbc_auth.dll&lt;/strong&gt; and &lt;strong&gt;sqljdbc_xa.dll&lt;/strong&gt;) are missing, or the directory in which these files live is not correctly referenced in the PATH environment variable.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;SQL Server Browser is not running.
&lt;ul&gt;
&lt;li&gt;The SQL Server rejected the request to connect on the default port. A SQL Server named instance is defined in &lt;strong&gt;*-ds.xml&lt;/strong&gt; but Appian is unable to map it to a hostname and port.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;For Cause 1, update the &lt;strong&gt;module.xml&lt;/strong&gt; to use the correct syntax for SQL Server and the correct path for the driver. Steps on how to configure &lt;strong&gt;module.xml&lt;/strong&gt; can be found in &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Relational_Databases.html#For_JBoss"&gt;Configuring Relational Databases&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For Cause 2, perform the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the directory containing &lt;strong&gt;sqljdbc_auth.dll&lt;/strong&gt; and &lt;strong&gt;sqljdbc_xa.dll&lt;/strong&gt; to the PATH environment variable.&lt;/li&gt;
&lt;li&gt;Restart JBoss.&lt;/li&gt;
&lt;li&gt;If the error still occurs after restarting JBoss, perform the following:
&lt;ol&gt;
&lt;li&gt;Add the directory to &lt;code&gt;java.library.path&lt;/code&gt; using &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_JBoss.html#Performance_and_Other_JVM_Settings"&gt;custom JVM settings&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Add the following line to &lt;strong&gt;standalone.custom.bat&lt;/strong&gt; (located in &lt;code&gt;&amp;lt;JBOSS_HOME&amp;gt;\bin&lt;/code&gt;), replacing &lt;code&gt;&amp;lt;JBOSS-HOME&amp;gt;&lt;/code&gt;` with the directory of where JBoss is installed:&lt;br /&gt;
&lt;pre&gt;set CUSTOM_JAVA_OPTS=-Djava.library.path=&amp;quot;&amp;lt;JBOSS-HOME&amp;gt;/modules/com/microsoft/sqlserver/jdbc/main&amp;quot;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Use forward slashes (/) in the above command only.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If using JBoss as a Windows Service, run it as the Windows user used to log in. Also, uninstall and reinstall the JBoss Windows Service for changes to take effect.&lt;/p&gt;
&lt;p&gt;For Cause 3, enable &lt;strong&gt;SQL Server Browser&lt;/strong&gt; in &lt;strong&gt;SQL Server Configuration Manager&lt;/strong&gt; under &lt;strong&gt;SQL Server Services&lt;/strong&gt; to allow the named instance to resolve to a hostname and port. Do not include the port in the connection URL if &lt;code&gt;&amp;lt;HOSTNAME&amp;gt;/&amp;lt;NAMEDINSTANCE&amp;gt;&lt;/code&gt; is used.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487075921186v1.png"&gt;&lt;img src="/resized-image/__size/1200x960/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487075921186v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="workaround"&gt;Workaround&lt;/h2&gt;
&lt;p&gt;If desired, integrated authentication can be turned off. This workaround should not be used for users that want to configure integrated security with SQL Server. Make the following changes in the &lt;strong&gt;appian-ds.xml&lt;/strong&gt; file for this datasource to switch to SQL Server Authentication.&lt;/p&gt;
&lt;p&gt;For a URL based connection string, add &lt;strong&gt;;integratedSecurity=false&lt;/strong&gt; (including the semicolon) at the end of the URL after the &lt;code&gt;databasename&lt;/code&gt; property. The connection string should now look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;xa-datasource-property name=&amp;quot;URL&amp;quot;&amp;gt;jdbc:sqlserver://sqlserver.example.com:1433;databaseName=MsSqlForAppian;integratedSecurity=false&amp;lt;/xa-datasource-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For &lt;code&gt;&amp;lt;xa-datasource-property&amp;gt;&lt;/code&gt; tag-based connection parameters, set the &lt;code&gt;IntegratedSecurity&lt;/code&gt; property to &lt;strong&gt;false&lt;/strong&gt;, so contents of the &lt;code&gt;&amp;lt;xa-datasource&amp;gt;&lt;/code&gt;should now look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;xa-datasource-property name=&amp;quot;ServerName&amp;quot;&amp;gt;sqlserver.example.com&amp;lt;/xa-datasource-property&amp;gt;
&amp;lt;xa-datasource-property name=&amp;quot;PortNumber&amp;quot;&amp;gt;1433&amp;lt;/xa-datasource-property&amp;gt;
&amp;lt;xa-datasource-property name=&amp;quot;DatabaseName&amp;quot;&amp;gt;MsSqlForAppian&amp;lt;/xa-datasource-property&amp;gt;
&amp;lt;xa-datasource-property name=&amp;quot;IntegratedSecurity&amp;quot;&amp;gt;false&amp;lt;/xa-datasource-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using SQL Server as a data source and using an application server on a Windows-based operating system.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: sql server, database, application server&lt;/div&gt;
</description></item></channel></rss>