Skip to content

Commit 2b835a0

Browse files
Upgrade sqlserver driver to version 12.8.1
1 parent d260ff5 commit 2b835a0

File tree

5 files changed

+43
-4
lines changed

5 files changed

+43
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@
14111411
<dependency>
14121412
<groupId>com.microsoft.sqlserver</groupId>
14131413
<artifactId>mssql-jdbc</artifactId>
1414-
<version>7.0.0.jre8</version>
1414+
<version>12.8.1.jre8</version>
14151415
</dependency>
14161416

14171417
<dependency>

presto-docs/src/main/sphinx/connector/sqlserver.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ Connection security
2929

3030
The JDBC driver and connector automatically use Transport Layer Security (TLS) encryption and certificate validation. This requires a suitable TLS certificate configured on your SQL Server database host.
3131

32+
.. note::
33+
34+
Starting from release 0.292, the default value of ``encrypt`` has changed from ``false`` to ``true``.
35+
3236
To disable encryption in the connection string, use the ``encrypt`` property:
3337

3438
.. code-block:: none
@@ -62,6 +66,41 @@ A connection string using a truststore would be similar to the following example
6266

6367
connection-url=jdbc:sqlserver://<host>:<port>;databaseName=<databaseName>;encrypt=true;trustServerCertificate=false;trustStoreType=PEM;hostNameInCertificate=hostname;trustStore=path/to/truststore.pem;trustStorePassword=password
6468

69+
Authentication
70+
^^^^^^^^^^^^^^
71+
+--------------------------+-----------------------------------------------------------------+------------------+
72+
| **Property** | **Description** | **Default Value**|
73+
+--------------------------+-----------------------------------------------------------------+------------------+
74+
| ``integratedSecurity`` | Enables Windows Authentication for SQL Server. | ``false`` |
75+
| | | |
76+
| | - Set to ``true`` with ``authenticationScheme=JavaKerberos`` | |
77+
| | to indicate that Kerberos credentials are used by SQL Server. | |
78+
| | - Set to ``true`` with ``authenticationScheme=NTLM`` to | |
79+
| | indicate that NTLM credentials are used by SQL Server. | |
80+
+--------------------------+-----------------------------------------------------------------+------------------+
81+
| ``authentication`` | Specifies the authentication method to use for connection. | ``NotSpecified`` |
82+
| | Possible values: | |
83+
| | | |
84+
| | - ``NotSpecified`` | |
85+
| | - ``SqlPassword`` | |
86+
| | - ``ActiveDirectoryPassword`` | |
87+
| | - ``ActiveDirectoryIntegrated`` | |
88+
| | - ``ActiveDirectoryManagedIdentity`` | |
89+
| | - ``ActiveDirectoryMSI`` | |
90+
| | - ``ActiveDirectoryInteractive`` | |
91+
| | - ``ActiveDirectoryServicePrincipal`` | |
92+
+--------------------------+-----------------------------------------------------------------+------------------+
93+
94+
Below is a sample connection URL with the NTLM authentication:
95+
96+
.. code-block:: none
97+
98+
connection-url=jdbc:sqlserver://<host>:<port>;databaseName=<databaseName>;encrypt=true;trustServerCertificate=false;integratedSecurity=true;authenticationScheme=NTLM;
99+
100+
101+
Refer to `setting the connection properties <https://learn.microsoft.com/en-us/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-ver16>`_ from the Microsoft official documentation.
102+
103+
65104
Multiple SQL Server Databases or Servers
66105
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67106

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
connector.name=sqlserver
2-
connection-url=jdbc:sqlserver://sqlserver
2+
connection-url=jdbc:sqlserver://sqlserver;encrypt=false;
33
connection-user=sa
44
connection-password=SQLServerPass1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
connector.name=sqlserver
2-
connection-url=jdbc:sqlserver://sqlserver
2+
connection-url=jdbc:sqlserver://sqlserver;encrypt=false;
33
connection-user=sa
44
connection-password=SQLServerPass1
55
allow-drop-table=true

presto-product-tests/src/main/resources/tempto-configuration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ databases:
105105

106106
sqlserver:
107107
jdbc_driver_class: com.microsoft.sqlserver.jdbc.SQLServerDriver
108-
jdbc_url: jdbc:sqlserver://sqlserver
108+
jdbc_url: jdbc:sqlserver://sqlserver;encrypt=false;
109109
jdbc_user: sa
110110
jdbc_password: SQLServerPass1
111111
jdbc_pooling: true

0 commit comments

Comments
 (0)