Skip to content

Commit 9f4330a

Browse files
authored
Merge pull request #5336 from MicrosoftDocs/master
3/29 PM Publish
2 parents e856cbf + 8090de7 commit 9f4330a

222 files changed

Lines changed: 25996 additions & 22 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/ado/guide/appendixes/microsoft-ole-db-provider-for-sql-server.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ ms.workload: "Active"
2626
# Microsoft OLE DB Provider for SQL Server Overview
2727
The Microsoft OLE DB Provider for SQL Server, SQLOLEDB, allows ADO to access Microsoft SQL Server.
2828

29+
**NOTE:** It is not recommended to use this driver for new development. The new OLE DB provider is called the [Microsoft OLE DB Driver for SQL Server](../../../connect/oledb/oledb-driver-for-sql-server.md) (MSOLEDBSQL) which will be updated with the most recent server features going forward.
30+
2931
## Connection String Parameters
3032
To connect to this provider, set the *Provider* argument to the [ConnectionString](../../../ado/reference/ado-api/connectionstring-property-ado.md) property to:
3133

docs/breadcrumb/toc.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,66 @@
106106
- name: Syntax
107107
href: /sql/odbc/reference/syntax/
108108
homepage: /sql/odbc/reference/syntax/odbc-reference
109+
- name: OLE DB
110+
href: /sql/connect/oledb/
111+
homepage: /sql/connect/oledb/oledb-driver-for-sql-server-programming
112+
items:
113+
- name: Features
114+
href: /sql/connect/oledb/features/
115+
homepage: /sql/connect/oledb/features/oledb-driver-for-sql-server-features
116+
- name: Applications
117+
href: /sql/connect/oledb/applications/
118+
homepage: /sql/connect/oledb/applications/building-applications-with-oledb-driver-for-sql-server
119+
- name: OLE DB
120+
href: /sql/connect/oledb/ole-db/
121+
homepage: /sql/connect/oledb/ole-db/oledb-driver-for-sql-server-ole-db
122+
items:
123+
- name: Driver
124+
href: /sql/connect/oledb/ole-db-driver/
125+
homepage: /sql/connect/oledb/ole-db-driver/creating-a-oledb-driver-for-sql-server-application
126+
- name: Data source objects
127+
href: /sql/connect/oledb/ole-db-data-source-objects/
128+
homepage: /sql/connect/oledb/ole-db-data-source-objects/data-source-objects-ole-db
129+
- name: Commands
130+
href: /sql/connect/oledb/ole-db-commands/
131+
homepage: /sql/connect/oledb/ole-db-commands/commands
132+
- name: Rowsets
133+
href: /sql/connect/oledb/ole-db-rowsets/
134+
homepage: /sql/connect/oledb/ole-db-rowsets/rowsets
135+
- name: Blobs
136+
href: /sql/connect/oledb/ole-db-blobs/
137+
homepage: /sql/connect/oledb/ole-db-blobs/blobs-and-ole-objects
138+
- name: Tables and indexes
139+
href: /sql/connect/oledb/ole-db-tables-indexes/
140+
homepage: /sql/connect/oledb/ole-db-tables-indexes/tables-and-indexes
141+
- name: Data types
142+
href: /sql/connect/oledb/ole-db-data-types/
143+
homepage: /sql/connect/oledb/ole-db-data-types/data-types-ole-db
144+
- name: Table valued parameters
145+
href: /sql/connect/oledb/ole-db-table-valued-parameters/
146+
homepage: /sql/connect/oledb/ole-db-table-valued-parameters/table-valued-parameters-ole-db
147+
- name: Date time
148+
href: /sql/connect/oledb/ole-db-date-time/
149+
homepage: /sql/connect/oledb/ole-db-date-time/date-and-time-improvements-ole-db
150+
- name: Transactions
151+
href: /sql/connect/oledb/ole-db-transactions/
152+
homepage: /sql/connect/oledb/ole-db-transactions/transactions
153+
- name: Errors
154+
href: /sql/connect/oledb/ole-db-errors/
155+
homepage: /sql/connect/oledb/ole-db-errors/errors
156+
- name: Interfaces
157+
href: /sql/connect/oledb/ole-db-interfaces/
158+
homepage: /sql/connect/oledb/ole-db-interfaces/oledb-driver-for-sql-server-ole-db-interfaces
159+
- name: How to
160+
href: /sql/connect/oledb/ole-db-how-to/
161+
homepage: /sql/connect/oledb/ole-db-how-to/ole-db-how-to-topics
162+
items:
163+
- name: Results
164+
href: /sql/connect/oledb/ole-db-how-to/results/
165+
homepage: /sql/connect/oledb/ole-db-how-to/results/processing-results-how-to-topics-ole-db
166+
- name: FileStream
167+
href: /sql/connect/oledb/ole-db-how-to/filestream/
168+
homepage: /sql/connect/oledb/ole-db-how-to/filestream/filestream-and-ole-db
109169
- name: PHP
110170
href: /sql/connect/php/
111171
homepage: /sql/connect/php/microsoft-php-driver-for-sql-server

docs/connect/TOC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# [JDBC +](jdbc/microsoft-jdbc-driver-for-sql-server.md)
77
# [Node.js +](node-js/node-js-driver-for-sql-server.md)
88
# [ODBC +](odbc/microsoft-odbc-driver-for-sql-server.md)
9+
# [OLE DB +](oledb/oledb-driver-for-sql-server-programming.md)
910
# [PHP +](php/microsoft-php-driver-for-sql-server.md)
1011
# [Python +](python/python-driver-for-sql-server.md)
1112
# [Ruby +](ruby/ruby-driver-for-sql-server.md)

docs/connect/oledb/TOC.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [OLE DB Driver for SQL Server Programming](oledb-driver-for-sql-server-programming.md)
2+
# [Features +](../oledb/features/oledb-driver-for-sql-server-features.md)
3+
# [Applications +](../oledb/applications/building-applications-with-oledb-driver-for-sql-server.md)
4+
# [OLE DB +](../oledb/ole-db/oledb-driver-for-sql-server-ole-db.md)
5+
6+
# [Finding More OLE DB Driver for SQL Server Information](finding-more-oledb-driver-for-sql-server-information.md)
7+
# [OLE DB Driver for SQL Server](oledb-driver-for-sql-server.md)
8+
# [System Requirements for OLE DB Driver for SQL Server](system-requirements-for-oledb-driver-for-sql-server.md)
9+
# [When to Use OLE DB Driver for SQL Server](when-to-use-oledb-driver-for-sql-server.md)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [Building Applications with OLE DB Driver for SQL Server](building-applications-with-oledb-driver-for-sql-server.md)
2+
# [Components of OLE DB Driver for SQL Server](components-of-oledb-driver-for-sql-server.md)
3+
# [Installing OLE DB Driver for SQL Server](installing-oledb-driver-for-sql-server.md)
4+
# [Support Policies for OLE DB Driver for SQL Server](support-policies-for-oledb-driver-for-sql-server.md)
5+
# [Updating an Application from SQL Server 2005 Native Client](updating-an-application-from-sql-server-2005-native-client.md)
6+
# [Updating an Application to OLE DB Driver for SQL Server from MDAC](updating-an-application-to-oledb-driver-for-sql-server-from-mdac.md)
7+
# [Using ADO with OLE DB Driver for SQL Server](using-ado-with-oledb-driver-for-sql-server.md)
8+
# [Using Connection String Keywords with OLE DB Driver for SQL Server](using-connection-string-keywords-with-oledb-driver-for-sql-server.md)
9+
# [Using the OLE DB Driver for SQL Server Header and Library Files](using-the-oledb-driver-for-sql-server-header-and-library-files.md)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: "Building Applications with OLE DB Driver for SQL Server | Microsoft Docs"
3+
description: "Building applications with OLE DB Driver for SQL Server"
4+
ms.custom: ""
5+
ms.date: "03/26/2018"
6+
ms.prod: "sql-non-specified"
7+
ms.prod_service: "database-engine, sql-database, sql-data-warehouse, pdw"
8+
ms.service: ""
9+
ms.component: "oledb|applications"
10+
ms.reviewer: ""
11+
ms.suite: "sql"
12+
ms.technology:
13+
- "docset-sql-devref"
14+
ms.tgt_pltfrm: ""
15+
ms.topic: "reference"
16+
helpviewer_keywords:
17+
- "data access [OLE DB Driver for SQL Server], building applications"
18+
- "MSOLEDBSQL, building applications"
19+
- "applications [OLE DB Driver for SQL Server]"
20+
- "OLE DB Driver for SQL Server, building applications"
21+
author: "pmasl"
22+
ms.author: "Pedro.Lopes"
23+
manager: "jhubbard"
24+
ms.workload: "On Demand"
25+
---
26+
# Building Applications with OLE DB Driver for SQL Server
27+
[!INCLUDE[appliesto-ss-asdb-asdw-pdw-md](../../../includes/appliesto-ss-asdb-asdw-pdw-md.md)]
28+
29+
When developing an application that uses the OLE DB Driver for SQL Server library, there are a number of issues that come into play. The topics in this section discuss many of these issues including upgrading from MDAC to OLE DB Driver for SQL Server, using the OLE DB Driver for SQL Server header and library files, and an overview of the various connection strings that can be used with OLE DB Driver for SQL Server.
30+
31+
## In This Section
32+
[Installing OLE DB Driver for SQL Server](../../oledb/applications/installing-oledb-driver-for-sql-server.md)
33+
Discusses how OLE DB Driver for SQL Server is installed, the locations that various components are installed to, and how to uninstall OLE DB Driver for SQL Server.
34+
35+
[Components of OLE DB Driver for SQL Server](../../oledb/applications/components-of-oledb-driver-for-sql-server.md)
36+
Discusses the components that make up OLE DB Driver for SQL Server including library, resource, help, and header files.
37+
38+
[Using Connection String Keywords with OLE DB Driver for SQL Server](../../oledb/applications/using-connection-string-keywords-with-oledb-driver-for-sql-server.md)
39+
Discusses the various types of connection strings that can be used when connecting to a database through OLE DB Driver for SQL Server.
40+
41+
[Using the OLE DB Driver for SQL Server Header and Library Files](../../oledb/applications/using-the-oledb-driver-for-sql-server-header-and-library-files.md)
42+
Discusses how to use the OLE DB Driver for SQL Server header and library files within an application.
43+
44+
[Updating an Application to OLE DB Driver for SQL Server from MDAC](../../oledb/applications/updating-an-application-to-oledb-driver-for-sql-server-from-mdac.md)
45+
Discusses the differences between OLE DB Driver for SQL Server and MDAC and issues that should be considered when upgrading from MDAC to OLE DB Driver for SQL Server.
46+
47+
[Updating an Application from SQL Server 2005 Native Client](../../oledb/applications/updating-an-application-from-sql-server-2005-native-client.md)
48+
Discusses issues that should be considered when upgrading from [!INCLUDE[ssVersion2005](../../../includes/ssversion2005-md.md)] Native Client to OLE DB Driver for SQL Server.
49+
50+
[Using ADO with OLE DB Driver for SQL Server](../../oledb/applications/using-ado-with-oledb-driver-for-sql-server.md)
51+
Discusses how ADO can use OLE DB Driver for SQL Server to access and use [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] functionality.
52+
53+
[Support Policies for OLE DB Driver for SQL Server](../../oledb/applications/support-policies-for-oledb-driver-for-sql-server.md)
54+
Discusses how various data-access components can be used with different versions of OLE DB Driver for SQL Server.
55+
56+
## See Also
57+
[OLE DB Driver for SQL Server Programming](../../oledb/oledb-driver-for-sql-server-programming.md)
58+
[OLE DB How-to Topics](../../oledb/ole-db-how-to/ole-db-how-to-topics.md)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "Components of OLE DB Driver for SQL Server | Microsoft Docs"
3+
description: "Components of OLE DB Driver for SQL Server"
4+
ms.custom: ""
5+
ms.date: "03/26/2018"
6+
ms.prod: "sql-non-specified"
7+
ms.prod_service: "database-engine, sql-database, sql-data-warehouse, pdw"
8+
ms.service: ""
9+
ms.component: "oledb|applications"
10+
ms.reviewer: ""
11+
ms.suite: "sql"
12+
ms.technology:
13+
- "docset-sql-devref"
14+
ms.tgt_pltfrm: ""
15+
ms.topic: "reference"
16+
helpviewer_keywords:
17+
- "data access [OLE DB Driver for SQL Server], components"
18+
- "components [OLE DB Driver for SQL Server]"
19+
- "MSOLEDBSQL, about OLE DB Driver for SQL Server"
20+
author: "pmasl"
21+
ms.author: "Pedro.Lopes"
22+
manager: "jhubbard"
23+
ms.workload: "Inactive"
24+
---
25+
# Components of OLE DB Driver for SQL Server
26+
[!INCLUDE[appliesto-ss-asdb-asdw-pdw-md](../../../includes/appliesto-ss-asdb-asdw-pdw-md.md)]
27+
28+
OLE DB Driver for SQL Server contains the following components:
29+
30+
|Component|Description|
31+
|---------------|-----------------|
32+
|msoledbsql.dll|The dynamic-link library (DLL) file that contains all of the OLE DB Driver for SQL Server functionality.|
33+
|msoledbsqlr.rll|The accompanying resource file for the OLE DB Driver for SQL Server library.|
34+
|msoledbsql.h|The OLE DB Driver for SQL Server header file that contains all of the new definitions needed in order to use OLE DB Driver for SQL Server. This header file replaces the sqloledb.h header file.<br /><br /> Note: You can reference msoledbsql.h and sqloledb.h in same program as long as sqloledb.h is defined first.|
35+
|msoledbsql.lib|The library file needed to directly call the **bcp** utility functions that are part of the OLE DB Driver for SQL Server.<br /><br /> Note: If you do reference the msoledbsql.lib file in your programming code, you need to make sure that the msoledbsql.dll file is in your system path, and in the system path of the users that make use of your application.|
36+
37+
## See Also
38+
[Building Applications with OLE DB Driver for SQL Server](../../oledb/applications/building-applications-with-oledb-driver-for-sql-server.md)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
redirect_url: /sql/connect/oledb/applications/building-applications-with-oledb-driver-for-sql-server
3+
---
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
title: "Installing OLE DB Driver for SQL Server | Microsoft Docs"
3+
description: "Installing and uninstalling OLE DB Driver for SQL Server"
4+
ms.custom: ""
5+
ms.date: "03/26/2018"
6+
ms.prod: "sql-non-specified"
7+
ms.prod_service: "database-engine, sql-database, sql-data-warehouse, pdw"
8+
ms.service: ""
9+
ms.component: "oledb|applications"
10+
ms.reviewer: ""
11+
ms.suite: "sql"
12+
ms.technology:
13+
- "docset-sql-devref"
14+
ms.tgt_pltfrm: ""
15+
ms.topic: "reference"
16+
helpviewer_keywords:
17+
- "OLE DB Driver for SQL Server, uninstalling"
18+
- "MSOLEDBSQL, installing"
19+
- "MSOLEDBSQL, uninstalling"
20+
- "Setup [OLE DB Driver for SQL Server]"
21+
- "uninstalling OLE DB Driver for SQL Server"
22+
- "data access [OLE DB Driver for SQL Server], uninstalling OLE DB Driver for SQL Server"
23+
- "installing OLE DB Driver for SQL Server"
24+
- "OLE DB Driver for SQL Server, installing"
25+
- "data access [OLE DB Driver for SQL Server], installing OLE DB Driver for SQL Server"
26+
- "removing OLE DB Driver for SQL Server"
27+
author: "pmasl"
28+
ms.author: "Pedro.Lopes"
29+
manager: "jhubbard"
30+
ms.workload: "Active"
31+
---
32+
# Installing OLE DB Driver for SQL Server
33+
[!INCLUDE[appliesto-ss-asdb-asdw-pdw-md](../../../includes/appliesto-ss-asdb-asdw-pdw-md.md)]
34+
35+
To install the OLE DB Driver for SQL Server you need msoledbsql.msi installer.
36+
Run the installer and make your preferred selections. The OLE DB Driver for SQL Server can be installed side-by-side with earlier versions of Microsoft OLE DB providers.
37+
38+
To download the most recent version of the OLE DB Driver for SQL Server go to Microsoft Download Center.
39+
40+
41+
The OLE DB Driver for SQL Server files (msoledbsql.dll, msoledbsqlr.rll) are installed to the following location:
42+
43+
`%SYSTEMROOT%\system32\`
44+
45+
> [!NOTE]
46+
> All appropriate registry settings for the OLE DB Driver for SQL Server are made as part of the installation process.
47+
48+
The OLE DB Driver for SQL Server header and library files (msoledbsql.h and msoledbsql.lib) are installed in the following location:
49+
50+
`%PROGRAMFILES%\Microsoft SQL Server\Client SDK\OLEDB\180\SDK`
51+
52+
53+
You can distribute OLE DB Driver for SQL Server through msoledbsql.msi. You might have to install OLE DB Driver for SQL Server when you deploy an application. One way to install multiple packages in what seems to the user to be a single installation is to use chainer and bootstrapper technology. For more information, see [Authoring a Custom Bootstrapper Package for Visual Studio 2005](http://go.microsoft.com/fwlink/?LinkId=115667) and [Adding Custom Prerequisites](http://go.microsoft.com/fwlink/?LinkId=115668).
54+
55+
The x64 msoledbsql.msi also installs the 32-bit version of OLE DB Driver for SQL Server. If your application targets a platform other than the one it was developed on, you can download versions of msoledbsql.msi for x64 and x86.
56+
57+
When you invoke msoledbsql.msi, only the client components are installed by default. The client components are are files that support running an application that was developed using OLE DB Driver for SQL Server. To also install the SDK components, specify `ADDLOCAL=All` on the command line. For example:
58+
59+
`msiexec /i msoledbsql.msi ADDLOCAL=ALL APPGUID={0CC618CE-F36A-415E-84B4-FB1BFF6967E1}`
60+
61+
## Silent Install
62+
If you use the /passive, /qn, /qb, or /qr option with msiexec, you must also specify IACCEPTMSOLEDBSQLLICENSETERMS=YES, to explicitly indicate that you accept the terms of the end user license. This option must be specified in all capital letters.
63+
64+
## Uninstalling OLE DB Driver for SQL Server
65+
Because applications such as [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] server and the [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] tools depend on OLE DB Driver for SQL Server, it is important not to uninstall OLE DB Driver for SQL Server until all dependent applications are uninstalled. To provide users with a warning that your application depends on OLE DB Driver for SQL Server, use the APPGUID install option in your MSI, as follows:
66+
67+
`msiexec /i msoledbsql.msi APPGUID={0CC618CE-F36A-415E-84B4-FB1BFF6967E1}`
68+
69+
The value passed to APPGUID is your specific product code. A product code must be created when using Microsoft Installer to bundle your application setup program.
70+
71+
## See Also
72+
[Building Applications with OLE DB Driver for SQL Server](../../oledb/applications/building-applications-with-oledb-driver-for-sql-server.md)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: "Support Policies for OLE DB Driver for SQL Server | Microsoft Docs"
3+
description: "Support policies for OLE DB Driver for SQL Server"
4+
ms.date: "03/26/2018"
5+
ms.prod: "sql-non-specified"
6+
ms.prod_service: "database-engine, sql-database, sql-data-warehouse, pdw"
7+
ms.service: ""
8+
ms.component: "oledb|applications"
9+
ms.reviewer: ""
10+
ms.suite: "sql"
11+
ms.custom: ""
12+
ms.technology:
13+
- "docset-sql-devref"
14+
ms.tgt_pltfrm: ""
15+
ms.topic: "reference"
16+
author: "pmasl"
17+
ms.author: "Pedro.Lopes"
18+
manager: "jhubbard"
19+
ms.workload: "On Demand"
20+
---
21+
# Support Policies for OLE DB Driver for SQL Server
22+
[!INCLUDE[appliesto-ss-asdb-asdw-pdw-md](../../../includes/appliesto-ss-asdb-asdw-pdw-md.md)]
23+
24+
This article discusses how various data-access components can be used with OLE DB Driver for SQL Server.
25+
26+
## Server Support
27+
OLE DB Driver for SQL Server supports connections to [!INCLUDE[ssSQL11](../../../includes/sssql11-md.md)], [!INCLUDE[ssSQL14](../../../includes/sssql14-md.md)],[!INCLUDE[ssSQL15](../../../includes/sssql15-md.md)], [!INCLUDE[ssSQL17](../../../includes/sssql17-md.md)], and [!INCLUDE[ssSDSfull](../../../includes/sssdsfull-md.md)].
28+
29+
## Supported Operating System Versions
30+
The following table lists which operating systems support OLE DB Driver for SQL Server.
31+
32+
|Supported operating systems|
33+
|--------------------------------------|---------------------------------|
34+
|Microsoft Windows 8.1<br /><br />Microsoft Windows 10<br /><br /> Microsoft Windows Server 2012<br /><br />Microsoft Windows Server 2012 R2<br /><br />Microsoft Windows Server 2016|
35+
36+
## ADO Support Policies
37+
ADO applications can use the SQLOLEDB OLE DB provider that is included with Windows if they do not require any of the features of [!INCLUDE[ssVersion2005](../../../includes/ssversion2005-md.md)] or later.
38+
39+
ADO applications can use the OLE DB Driver for SQL Server, but if they do so they must specify `DataTypeCompatibility=80` in the connection strings. Only features from [!INCLUDE[ssVersion2005](../../../includes/ssversion2005-md.md)] are available when `DataTypeCompatibility=80` is present in the connection strings.
40+
41+
## OLE DB Support Policies
42+
Applications can use the OLE DB provider (SQLOLEDB) included with the Windows operating system.
43+
However, that is in maintenance mode and no longer updated.
44+
You should use the OLE DB Driver for SQL Server (MSOLEDBSQL) instead.
45+
46+
## See Also
47+
[Building Applications with OLE DB Driver for SQL Server](../../oledb/applications/building-applications-with-oledb-driver-for-sql-server.md)

0 commit comments

Comments
 (0)