Skip to content

Commit 4cfaf35

Browse files
author
mtx48109
committed
final touchups
1 parent 0d738f6 commit 4cfaf35

22 files changed

+48
-48
lines changed

docs/data/oledb/caccessor-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ template <class T>
2222
class CAccessor : public CAccessorBase, public T
2323
```
2424
25-
#### Parameters
25+
### Parameters
2626
*T*
2727
The user record class.
2828

docs/data/oledb/caccessorrowset-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CAccessorRowset : public TAccessor, public TRowset<TAccessor>
4343
|[CAccessorRowset](#caccessorrowset)|Constructor.|
4444
|[Close](#close)|Closes the rowset and any accessors.|
4545
|[FreeRecordMemory](#freerecordmemory)|Frees any columns in the current record that need to be freed.|
46-
|[GetColumnInfo](#getcolumninfo)|Implements [IColumnsInfo::GetColumnInfo](https://msdn.microsoft.com/en-us/library/ms722704.aspx).|
46+
|[GetColumnInfo](#getcolumninfo)|Implements [IColumnsInfo::GetColumnInfo](https://msdn.microsoft.com/library/ms722704.aspx).|
4747
4848
## Remarks
4949
Class `TAccessor` manages the accessor. Class *TRowset* manages the rowset.

docs/data/oledb/cmyprovidersource-myproviderds-h.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ATL_NO_VTABLE CMyProviderSource :
3535
## COM Map
3636
Whenever the client calls `QueryInterface` for an interface on the data source, it goes through the following COM map:
3737
38-
```cpp
38+
```
3939
BEGIN_COM_MAP(CMyProviderSource)
4040
COM_INTERFACE_ENTRY(IDBCreateSession)
4141
COM_INTERFACE_ENTRY(IDBInitialize)
@@ -50,7 +50,7 @@ END_COM_MAP()
5050
## Property Map
5151
The property map specifies all the properties designated by the provider:
5252
53-
```cpp
53+
```
5454
BEGIN_PROPSET_MAP(CMyProviderSource)
5555
BEGIN_PROPERTY_SET(DBPROPSET_DATASOURCEINFO)
5656
PROPERTY_INFO_ENTRY(ACTIVESESSIONS)

docs/data/oledb/commands-and-tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Command and Table Classes
2525

2626
- For data sources that support commands, you can use the `CCommand` class instead. To execute a command, call [Open](../../data/oledb/ccommand-open.md) on this class. As an alternative, you can call `Prepare` to prepare a command that you want to execute more than once.
2727

28-
`CCommand` has three template arguments: an accessor type, a rowset type, and a result type (`CNoMultipleResults`, by default, or `CMultipleResults`). If you specify `CMultipleResults`, the `CCommand` class supports the `IMultipleResults` interface and handles multiple rowsets. The [DBVIEWER](http://msdn.microsoft.com/en-us/07620f99-c347-4d09-9ebc-2459e8049832) sample shows how to handle the multiple results.
28+
`CCommand` has three template arguments: an accessor type, a rowset type, and a result type (`CNoMultipleResults`, by default, or `CMultipleResults`). If you specify `CMultipleResults`, the `CCommand` class supports the `IMultipleResults` interface and handles multiple rowsets. The [DBVIEWER](http://msdn.microsoft.com/07620f99-c347-4d09-9ebc-2459e8049832) sample shows how to handle the multiple results.
2929

3030
## See Also
3131
[OLE DB Consumer Templates](../../data/oledb/ole-db-consumer-templates-cpp.md)

docs/data/oledb/consumer-wizard-generated-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ SELECT \
110110
### Column Map
111111
The wizard then generates the column bindings or column map. To fix several issues with some providers, the following code might bind columns in a different order than that reported by the provider.
112112
113-
```cpp
113+
```
114114
BEGIN_COLUMN_MAP(CProductsAccessor)
115115
COLUMN_ENTRY_LENGTH_STATUS(1, m_ProductID, m_dwProductIDLength, m_dwProductIDStatus)
116116
COLUMN_ENTRY_LENGTH_STATUS(2, m_ProductName, m_dwProductNameLength, m_dwProductNameStatus)

docs/data/oledb/creating-an-ole-db-provider.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ The recommended way to create an OLE DB provider is to use the wizards to create
2424

2525
4. Update the PROVIDER_COLUMN_MAP, which can be found in MyProviderRS.h. For an example, see [Storing Strings In the OLE DB Provider](../../data/oledb/storing-strings-in-the-ole-db-provider.md).
2626

27-
5. When you are ready to test your provider, you can test it by trying to find the provider in a provider enumeration. For examples of test code that finds a provider in an enumeration, see the [CATDB](http://msdn.microsoft.com/en-us/003d516b-2bf6-444e-8be5-4ebaa0b66046) and [DBVIEWER](http://msdn.microsoft.com/en-us/07620f99-c347-4d09-9ebc-2459e8049832) samples or the example in [Implementing A Simple Consumer](../../data/oledb/implementing-a-simple-consumer.md).
27+
5. When you are ready to test your provider, you can test it by trying to find the provider in a provider enumeration. For examples of test code that finds a provider in an enumeration, see the [CATDB](http://msdn.microsoft.com/003d516b-2bf6-444e-8be5-4ebaa0b66046) and [DBVIEWER](http://msdn.microsoft.com/07620f99-c347-4d09-9ebc-2459e8049832) samples or the example in [Implementing A Simple Consumer](../../data/oledb/implementing-a-simple-consumer.md).
2828

2929
6. Add any additional interfaces you want. For an example, see [Enhancing the Simple Read-Only Provider](../../data/oledb/enhancing-the-simple-read-only-provider.md).
3030

3131
> [!NOTE]
3232
> By default, the wizards generate code that is OLE DB level 0 compliant. To ensure that your application remains level 0 compliant, do not remove any of the wizard-generated interfaces from the code.
3333
3434
## See Also
35-
[CATDB](http://msdn.microsoft.com/en-us/003d516b-2bf6-444e-8be5-4ebaa0b66046)
36-
[DBVIEWER](http://msdn.microsoft.com/en-us/07620f99-c347-4d09-9ebc-2459e8049832)
35+
[CATDB](http://msdn.microsoft.com/003d516b-2bf6-444e-8be5-4ebaa0b66046)
36+
[DBVIEWER](http://msdn.microsoft.com/07620f99-c347-4d09-9ebc-2459e8049832)

docs/data/oledb/defining-stored-procedures.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ ms.workload: ["cplusplus", "data-storage"]
1414
# Defining Stored Procedures
1515
Before calling a stored procedure, you must first define it, using the [DEFINE_COMMAND](../../data/oledb/define-command.md) macro. When you define the command, denote parameters with a question mark (?) as the parameter marker:
1616

17-
```cpp
17+
```
1818
DEFINE_COMMAND(CMySProcAccessor, _T("{INSERT {name, phone} into shippers (?,?)}")
1919
```
2020

2121
Note that the syntax (the use of braces and so on) used in the code examples in this topic is specific to SQL Server. The syntax that you use in your stored procedures might vary according to the provider you use.
2222

2323
Next, in the parameter map, specify the parameters that you used in the command, listing the parameters in the order that they occur in the command:
2424

25-
```cpp
25+
```
2626
BEGIN_PARAM_MAP(CMySProcAccessor)
2727
SET_PARAM_TYPE(DBPARAMIO_INPUT)
2828
COLUMN_ENTRY(1, m_Name) // name corresponds to first '?' param
@@ -33,7 +33,7 @@ END_PARAM_MAP()
3333

3434
The previous example defines a stored procedure as it goes. Typically, for efficient reuse of code, a database contains a set of predefined stored procedures with names such as "Sales by Year" or "dt_adduserobject." You can view their definitions using SQL Server Enterprise Manager. You call them as follows (the placement of the '?' parameters depends on the stored procedure's interface):
3535

36-
```cpp
36+
```
3737
DEFINE_COMMAND(CMySProcAccessor, _T("{CALL \"Sales by Year\" (?,?) }")
3838
DEFINE_COMMAND(CMySProcAccessor, _T("{CALL dbo.dt_adduserobject (?,?) }")
3939
```

docs/data/oledb/determining-which-type-of-accessor-to-use.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You can determine data types on a rowset at compile time or at run time.
2626
|`CDynamicAccessor`|Automatic.|No.|Useful if you do not know the type of data in a rowset.|
2727
|`CDynamicParameterAccessor`|Automatic, but can be [overridden](../../data/oledb/overriding-a-dynamic-accessor.md).|Yes, if the provider supports `ICommandWithParameters`. Parameters bound automatically.|Slower than `CDynamicAccessor` but useful for calling generic stored procedures.|
2828
|`CDynamicStringAccessor[A,W]`|Automatic.|No.|Retrieves data accessed from the data store as string data.|
29-
|`CManualAccessor`|Manual using `AddBindEntry`.|Manually using `AddParameterEntry`.|Very fast; parameters and columns bound only once. You determine the type of data to use. (See [DBVIEWER](http://msdn.microsoft.com/en-us/07620f99-c347-4d09-9ebc-2459e8049832) sample for an example.) Requires more code than `CDynamicAccessor` or `CAccessor`. It is more like calling OLE DB directly.|
29+
|`CManualAccessor`|Manual using `AddBindEntry`.|Manually using `AddParameterEntry`.|Very fast; parameters and columns bound only once. You determine the type of data to use. (See [DBVIEWER](http://msdn.microsoft.com/07620f99-c347-4d09-9ebc-2459e8049832) sample for an example.) Requires more code than `CDynamicAccessor` or `CAccessor`. It is more like calling OLE DB directly.|
3030
|`CXMLAccessor`|Automatic.|No.|Retrieves data accessed from the data store as string data and formats it as XML-tagged data.|
3131

3232
## See Also

docs/data/oledb/obtaining-metadata-with-schema-rowsets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ CRestrictions<CAccessor<CColumnsInfo>
7979

8080
For more information about OLE DB schema rowsets, including restriction columns, see [Appendix B: Schema Rowsets](http://go.microsoft.com/fwlink/p/?linkid=64681) in the OLE DB Programmer's Reference.
8181

82-
For more complex examples of how to use schema rowset classes, see the [CatDB](http://msdn.microsoft.com/en-us/003d516b-2bf6-444e-8be5-4ebaa0b66046) and [DBViewer](http://msdn.microsoft.com/en-us/07620f99-c347-4d09-9ebc-2459e8049832) samples.
82+
For more complex examples of how to use schema rowset classes, see the [CatDB](http://msdn.microsoft.com/003d516b-2bf6-444e-8be5-4ebaa0b66046) and [DBViewer](http://msdn.microsoft.com/07620f99-c347-4d09-9ebc-2459e8049832) samples.
8383

8484
For information about provider support for schema rowsets, see [Supporting Schema Rowsets](../../data/oledb/supporting-schema-rowsets.md).
8585

docs/data/oledb/ole-db-consumer-templates-cpp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The OLE DB Consumer Templates support the OLE DB version 2.6 specification. (The
2020

2121
- Native C/C++ data types for OLE DB programming.
2222

23-
To use the OLE DB Templates, you should be familiar with C++ templates, COM, and the OLE DB interfaces. If you are not familiar with OLE DB, see [OLE DB Programmer's Reference](https://msdn.microsoft.com/en-us/library/ms718124.aspx).
23+
To use the OLE DB Templates, you should be familiar with C++ templates, COM, and the OLE DB interfaces. If you are not familiar with OLE DB, see [OLE DB Programmer's Reference](https://msdn.microsoft.com/library/ms718124.aspx).
2424

2525
The OLE DB Templates support the existing OLE DB object model rather than adding a new object model. The top-layer classes in the OLE DB Consumer Templates parallel the components defined in the OLE DB specification. The design of the OLE DB Consumer Templates includes advanced features such as multiple accessors on a rowset. The use of templates and multiple inheritance makes the library small and flexible.
2626

@@ -54,5 +54,5 @@ The OLE DB Consumer Templates support the OLE DB version 2.6 specification. (The
5454
## See Also
5555
[OLE DB Programming](../../data/oledb/ole-db-programming.md)
5656
[Data Access](../data-access-in-cpp.md)
57-
[OLE DB SDK Documentation](https://msdn.microsoft.com/en-us/library/ms722784.aspx)
58-
[OLE DB Programmer's Reference](https://msdn.microsoft.com/en-us/library/ms713643.aspx)
57+
[OLE DB SDK Documentation](https://msdn.microsoft.com/library/ms722784.aspx)
58+
[OLE DB Programmer's Reference](https://msdn.microsoft.com/library/ms713643.aspx)

0 commit comments

Comments
 (0)