You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ef6e729
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/connect/jdbc/setting-the-connection-properties.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ The following table lists all the currently available connection string properti
50
50
| accessToken<br/><br/>String<br/><br/>null| (Version6.0+) Usethis property to connect to a database using an access token. **accessToken** can't be set using the connection URL. |
51
51
| applicationIntent<br/><br/>String<br/><br/>ReadWrite | (Version 6.0+) Declares the application workload type when connecting to a server. <br/><br/>Possible values are **ReadOnly** and **ReadWrite**. <br/><br/>For more information about disaster recovery, see [JDBC driver support for High Availability, disaster recovery](jdbc-driver-support-for-high-availability-disaster-recovery.md). |
52
52
| applicationName<br/><br/>String<br/>[<=128 char]<br/><br/>null | The application name, or "Microsoft JDBC Driver for SQL Server" if no name is provided.<br/><br/>Used to identify the specific application in various [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] profiling and logging tools. |
53
-
| authentication<br/><br/>String<br/><br/>NotSpecified | (Version 6.0+) This optional property indicates which authentication method to use for connection. Possible values are **ActiveDirectoryIntegrated**, **ActiveDirectoryPassword**, **ActiveDirectoryMSI** (version 7.2+), **ActiveDirectoryInteractive** (version 9.2+), **ActiveDirectdoryServicePrincipal** (version 9.2+), **SqlPassword**, and the default **NotSpecified**.<br/><br/> Use **ActiveDirectoryIntegrated** (version 6.0+) to connect to a SQL database using integrated Windows authentication.<br/><br/> Use **ActiveDirectoryPassword** (version 6.0+) to connect to a SQL database using an Azure AD principal name and password.<br/><br/> Use **ActiveDirectoryMSI** (version 7.2+) to connect to a SQL database from inside an Azure Resource. For example, an Azure Virtual Machine, App Service or Function App using Managed Identity (MSI) authentication. <br><br>The two types of Managed Identities supported by the driver when using **ActiveDirectoryMSI** authentication mode are: <br> 1. _System-Assigned Managed Identity_: Used to acquire **accessToken** by default. <br> 2. _User-Assigned Managed Identity_: Used to acquire **accessToken** if the Client ID of a Managed Identity (MSI) is specified with the **msiClientId** connection property.<br/><br/>Use **ActiveDirectoryInteractive** to connect to a SQL database using an interactive authentication flow. <br/><br/>Use **ActiveDirectoryServicePrincipal** (version 9.2+) to connect to a SQL database using the client ID and secret of a service principal identity.<br/><br/> Use **SqlPassword** to connect to a SQL database using **userName**/**user** and **password** properties.<br/><br/> Use **NotSpecified** if none of these authentication methods are needed.<br/><br/> **Important:** If authentication is set to ActiveDirectoryIntegrated, the following two libraries need to be installed: **mssql-jdbc_auth-\<version>-\<arch>.dll** (available in the JDBC driver package) and Azure Active Directory Authentication Library for SQL Server (**ADAL.DLL**). ADAL can be installed from [Microsoft ODBC Driver for SQL Server](../odbc/download-odbc-driver-for-sql-server.md) or [Microsoft OLE DB Driver for SQL Server](../oledb/download-oledb-driver-for-sql-server.md). The JDBC driver only supports version **1.0.2028.318 and higher** for ADAL.DLL.<br/><br/> **Note:** When the authentication property is set to any value other than **NotSpecified**, the driver by default uses Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), encryption.<br/><br/> For information on how to configure Azure Active Directory authentication, see [Connecting to SQL Database By Using Azure Active Directory Authentication](/azure/azure-sql/database/authentication-aad-overview). |
53
+
| authentication<br/><br/>String<br/><br/>NotSpecified | (Version 6.0+) This optional property indicates which authentication method to use for connection. Possible values are **ActiveDirectoryIntegrated**, **ActiveDirectoryPassword**, **ActiveDirectoryMSI** (version 7.2+), **ActiveDirectoryInteractive** (version 9.2+), **ActiveDirectoryServicePrincipal** (version 9.2+), **SqlPassword**, and the default **NotSpecified**.<br/><br/> Use **ActiveDirectoryIntegrated** (version 6.0+) to connect to a SQL database using integrated Windows authentication.<br/><br/> Use **ActiveDirectoryPassword** (version 6.0+) to connect to a SQL database using an Azure AD principal name and password.<br/><br/> Use **ActiveDirectoryMSI** (version 7.2+) to connect to a SQL database from inside an Azure Resource. For example, an Azure Virtual Machine, App Service or Function App using Managed Identity (MSI) authentication. <br><br>The two types of Managed Identities supported by the driver when using **ActiveDirectoryMSI** authentication mode are: <br> 1. _System-Assigned Managed Identity_: Used to acquire **accessToken** by default. <br> 2. _User-Assigned Managed Identity_: Used to acquire **accessToken** if the Client ID of a Managed Identity (MSI) is specified with the **msiClientId** connection property.<br/><br/>Use **ActiveDirectoryInteractive** to connect to a SQL database using an interactive authentication flow. <br/><br/>Use **ActiveDirectoryServicePrincipal** (version 9.2+) to connect to a SQL database using the client ID and secret of a service principal identity.<br/><br/> Use **SqlPassword** to connect to a SQL database using **userName**/**user** and **password** properties.<br/><br/> Use **NotSpecified** if none of these authentication methods are needed.<br/><br/> **Important:** If authentication is set to ActiveDirectoryIntegrated, the following two libraries need to be installed: **mssql-jdbc_auth-\<version>-\<arch>.dll** (available in the JDBC driver package) and Azure Active Directory Authentication Library for SQL Server (**ADAL.DLL**). ADAL can be installed from [Microsoft ODBC Driver for SQL Server](../odbc/download-odbc-driver-for-sql-server.md) or [Microsoft OLE DB Driver for SQL Server](../oledb/download-oledb-driver-for-sql-server.md). The JDBC driver only supports version **1.0.2028.318 and higher** for ADAL.DLL.<br/><br/> **Note:** When the authentication property is set to any value other than **NotSpecified**, the driver by default uses Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), encryption.<br/><br/> For information on how to configure Azure Active Directory authentication, see [Connecting to SQL Database By Using Azure Active Directory Authentication](/azure/azure-sql/database/authentication-aad-overview). |
54
54
| authenticationScheme<br/><br/>String<br/><br/>NativeAuthentication | Indicates which kind of integrated security you want your application to use. Possible values are **JavaKerberos**, **NTLM** (version 7.4+), and the default **NativeAuthentication**.<br/><br/> **NativeAuthentication** causes the driver to load `mssql-jdbc_auth-<version>-<arch>.dll` (for example, `mssql-jdbc_auth-8.2.2.x64.dll`) on Windows, which is used to obtain integrated authentication information. <br/><br/> (The native authentication library loaded is named `sqljdbc_auth.dll` when using driver versions 6.0 through 7.4.) <br/><br/> When using **authenticationScheme=JavaKerberos**, you must specify the fully qualified domain name (FQDN) in the **serverName** or **serverSpn** property. Otherwise, an error occurs (Server not found in Kerberos database).<br/><br/> For more information about using **authenticationScheme=JavaKerberos**, see [Using Kerberos integrated authentication to connect to SQL Server](using-kerberos-integrated-authentication-to-connect-to-sql-server.md). <br/><br/> When using **authenticationScheme=NTLM**, you must specify the Windows domain by using the **domain** or **domainName** property, the Windows credentials in the **user** or **userName** property, and the **password** property. Otherwise, an error occurs (connection properties must be specified). |
55
55
| cancelQueryTimeout<br/><br/>int<br/><br/>-1 | (Version 6.4+) This property can be used to cancel a **queryTimeout** set on the connection. Query execution hangs and doesn't throw an exception if the TCP connection to the server is silently dropped. This property is only applicable if'queryTimeout' is also set on the connection. <br/><br/>The driver waits the total amount of **cancelQueryTimeout**+**queryTimeout** seconds, to drop the connection and close the channel. <br/><br/>Thedefault value forthis property is -1 and behavior is to wait indefinitely. |
56
56
| clientCertificate<br/><br/>String<br/><br/>null| (Version8.4+) Specifies the location of the certificate to be used for client certificate authentication. TheJDBC driver will support PFX, PEM, DER, and CER file extensions. <br/><br/>For details, see [ClientCertificateAuthenticationforLoopbackScenarios](client-certification-authentication-for-loopback-scenarios.md).|
0 commit comments