Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit c6acecf

Browse files
authored
Merge pull request #21277 from chris-rossi/v19diffdoc
Add page to explain differences between MSOLEDBSQL major versions
2 parents 2b0862c + 079fd6a commit c6acecf

5 files changed

Lines changed: 49 additions & 3 deletions

docs/connect/oledb/applications/support-policies-for-oledb-driver-for-sql-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following table lists which operating systems are supported by OLE DB Driver
4141
| Operating system&nbsp;&#8594;<br />&#8595; Driver version | Windows Server 2022 | Windows Server 2019 | Windows Server 2016 | Windows Server 2012<sup>1</sup> | Windows Server 2012 R2<sup>2</sup> | Windows 10 | Windows 8.1<sup>3</sup> |
4242
|----|---|---|---|---|---|---|---|
4343
|19.0|Yes|Yes|Yes|Yes|Yes|Yes|Yes|
44-
|18.6| |Yes|Yes|Yes|Yes|Yes|Yes|
44+
|18.6|Yes|Yes|Yes|Yes|Yes|Yes|Yes|
4545
|18.5| |Yes|Yes|Yes|Yes|Yes|Yes|
4646
|18.4| |Yes|Yes|Yes|Yes|Yes|Yes|
4747
|18.3| |Yes|Yes|Yes|Yes|Yes|Yes|

docs/connect/oledb/download-oledb-driver-for-sql-server.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,6 @@ For details about this release, see [the release notes](release-notes-for-oledb-
5656
[System requirements for OLE DB Driver for SQL Server](system-requirements-for-oledb-driver-for-sql-server.md)
5757
[Support policies for OLE DB Driver for SQL Server](applications\support-policies-for-oledb-driver-for-sql-server.md)
5858
[When to use OLE DB Driver for SQL Server](when-to-use-oledb-driver-for-sql-server.md)
59-
[Installing OLE DB Driver for SQL Server](applications/installing-oledb-driver-for-sql-server.md)
59+
[Installing OLE DB Driver for SQL Server](applications/installing-oledb-driver-for-sql-server.md)
60+
[MSOLEDBSQL major version differences](major-version-differences.md)
61+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: "MSOLEDBSQL major version differences"
3+
description: A description of the differences between the OLE DB Driver 19 for SQL Server and the OLE DB Driver for SQL Server
4+
ms.custom: ""
5+
ms.date: "02/16/2022"
6+
ms.prod: sql
7+
ms.prod_service: "database-engine, sql-database, synapse-analytics, pdw"
8+
ms.reviewer: ""
9+
ms.technology: connectivity
10+
ms.topic: "reference"
11+
helpviewer_keywords:
12+
- "MSOLEDBSQL, additional resources"
13+
- "MSOLEDBSQL19, additional resources"
14+
- "OLE DB Driver for SQL Server, additional resources"
15+
- "OLE DB Driver 19 for SQL Server, additional resources"
16+
author: David-Engel
17+
ms.author: v-davidengel
18+
---
19+
# Major version differences
20+
21+
## Encryption property changes
22+
23+
In the Microsoft OLE DB Driver 19 for SQL Server, there are a number of changes made to the encrypt property/connection string keyword.
24+
25+
First, the driver property `SSPROP_INIT_ENCRYPT` has been changed from a `VT_BOOL` to a `VT_BSTR`. The valid values of this property are `no`/`yes`/`true`/`false`/`Optional`/`Mandatory`/`Strict`. The valid values for the provider connection string keyword `Encrypt` have changed from `no`/`yes` to `no`/`yes`/`true`/`false`/`Optional`/`Mandatory`/`Strict`. Similarly, for the `IDataInitialize` connection string keyword `Use Encryption for Data`, the valid values have changed from `true`/`false` to `no`/`yes`/`true`/`false`/`Optional`/`Mandatory`/`Strict`. The `Optional` value is synonymous with the old `no`/`false` values and the `Mandatory` value is synonymous with the old `yes`/`true` values. `Strict` is a new value added in version 19.0.0 of the OLE DB Driver for SQL Server and encrypts `PRELOGIN` packets in addition to all other communication with the server. `Strict` encryption is only supported on SQL Server endpoints that support TDS 8.0, otherwise the driver will fail to connect. The OLE DB Driver 19 for SQL Server continues to support all legacy keyword values for backwards compatibility.
26+
27+
Second, the default value has changed from `no`/`false` to `Mandatory`. This change means that connections are encrypted by default. Previously, the driver would encrypt connections if explicitly set by the user and/or mandated by the SQL Server when the server side property `Force Encryption` was set to `yes`. To use old default behavior, include `Encrypt=Optional;` in the provider connection string, or `Use Encryption for Data=Optional;` in the `IDataInitialize` connection string.
28+
29+
## Driver name changes
30+
31+
The new Microsoft OLE DB Driver 19 for SQL Server supports side by side installation with the older Microsoft OLE DB Driver for SQL Server. To be able to differentiate the drivers, the name was changed to include the major version number. To use the new driver in an application, the user must specify the new driver name. The new driver name, along with the corresponding CLSID, is specified in the updated `msoledbsql.h` header that must be included in the project. Connections through the `IDBInitialize` interface require no further changes since `MSOLEDBSQL_CLSID` will specify the CLSID of the OLE DB Driver 19 for SQL Server. Connections through the `IDataInitialize` interface must replace the value of the `Provider` keyword with `MSOLEDBSQL19` to use the Microsoft OLE DB Driver 19 for SQL Server. In graphical user interfaces such as data link properties or linked server setup in SSMS, "Microsoft OLE DB Driver 19 for SQL Server" must be selected from the list of installed providers.
32+
33+
## See also
34+
[OLE DB Driver for SQL Server](oledb-driver-for-sql-server.md)
35+
[Using Connection String Keywords with OLE DB Driver](applications/using-connection-string-keywords-with-oledb-driver-for-sql-server.md)
36+
[Using Encryption Without Validation](features/using-encryption-without-validation.md)
37+
[Universal Data Link (UDL) Configuration](help-topics/data-link-pages.md)
38+
[SQL Server Login Dialog Box (OLE DB)](help-topics/sql-server-login-dialog.md)
39+
[Initialization and authorization properties (OLE DB driver)](ole-db-data-source-objects/initialization-and-authorization-properties.md)
40+

docs/connect/oledb/release-notes-for-oledb-driver-for-sql-server.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,6 @@ For the x86 driver: [Chinese (Simplified)](https://go.microsoft.com/fwlink/?link
277277

278278
## See also
279279

280-
[Microsoft OLE DB Driver for SQL Server](oledb-driver-for-sql-server.md)
280+
[Microsoft OLE DB Driver for SQL Server](oledb-driver-for-sql-server.md)
281+
[MSOLEDBSQL major version differences](major-version-differences.md)
282+

docs/connect/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5256,6 +5256,8 @@
52565256
href: ../connect/oledb/download-oledb-driver-for-sql-server.md
52575257
- name: Release notes
52585258
href: ../connect/oledb/release-notes-for-oledb-driver-for-sql-server.md
5259+
- name: MSOLEDBSQL major version differences
5260+
href: ../connect/oledb/major-version-differences.md
52595261
- name: System requirements
52605262
href: ../connect/oledb/system-requirements-for-oledb-driver-for-sql-server.md
52615263
- name: When to use OLE DB Driver

0 commit comments

Comments
 (0)