Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 2.11 KB

File metadata and controls

37 lines (31 loc) · 2.11 KB
title Required Providers for Data Shaping | Microsoft Docs
ms.prod sql
ms.prod_service connectivity
ms.technology connectivity
ms.custom
ms.date 01/19/2017
ms.reviewer
ms.topic conceptual
helpviewer_keywords
providers [ADO], data shaping
data shaping [ADO], providers required
ms.assetid d49d48d2-ac2d-4c11-895c-5a149b444620
author MightyPen
ms.author genemi

Required Providers for Data Shaping

Data shaping typically requires two providers. The service provider, Data Shaping Service for OLE DB, supplies the data shaping functionality, and a data provider, such as the OLE DB Provider for SQL Server, supplies rows of data to populate the shaped Recordset.

The name of the service provider (MSDataShape) can be specified as the value of the Connection object Provider property or the connection string keyword "Provider=MSDataShape;".

The name of the data provider can be specified as the value of the Data Provider dynamic property, which is added to the Connection object Properties collection by the Data Shaping Service for OLE DB, or the connection string keyword "Data Provider = provider".

No data provider is required if the Recordset is not populated (for example, as in a fabricated Recordset where columns are created with the NEW keyword). In that case, specify "Data Provider= none;".

Example

Dim cnn As New ADODB.Connection  
cnn.Provider = "MSDataShape"  
cnn.Open "Data Provider=SQLOLEDB;Integrated Security=SSPI;Database=Northwind"  

See Also

Data Shaping Example
Formal Shape Grammar
Shape Commands in General