Skip to content

Commit ef6e729

Browse files
authored
Fixed minor typo
1 parent 77a7d56 commit ef6e729

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/connect/jdbc/setting-the-connection-properties.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The following table lists all the currently available connection string properti
5050
| accessToken<br/><br/>String<br/><br/>null | (Version 6.0+) Use this property to connect to a database using an access token. **accessToken** can't be set using the connection URL. |
5151
| 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). |
5252
| applicationName<br/><br/>String<br/>[&lt;=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). |
5454
| 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). |
5555
| 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/>The default value for this property is -1 and behavior is to wait indefinitely. |
5656
| clientCertificate<br/><br/>String<br/><br/>null | (Version 8.4+) Specifies the location of the certificate to be used for client certificate authentication. The JDBC driver will support PFX, PEM, DER, and CER file extensions. <br/><br/>For details, see [Client Certificate Authentication for Loopback Scenarios](client-certification-authentication-for-loopback-scenarios.md). |

0 commit comments

Comments
 (0)