Skip to content

Commit 02f63ca

Browse files
author
mikeblome
committed
updates for MFC ODBC wizard
1 parent a6ea7e3 commit 02f63ca

14 files changed

+57
-25
lines changed

docs/atl/reference/com-plus-1-0-atl-com-plus-1-0-component-wizard.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
---
22
title: "COM+ 1.0, ATL COM+ 1.0 Component Wizard"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
f1_keywords: ["vc.codewiz.class.atl.mts.options"]
55
ms.assetid: 2fbe259c-6be1-4d0e-9cfe-721c75c97cb1
66
---
77
# COM+ 1.0, ATL COM+ 1.0 Component Wizard
88

9+
::: moniker range="vs-2019"
10+
11+
This wizard is not available in Visual Studio 2019 and later.
12+
13+
::: moniker-end
14+
15+
::: moniker range="vs-2017"
16+
917
Use this page of the ATL COM+ 1.0 Component Wizard to specify interface type and additional interfaces to be supported.
1018

1119
For more information on ATL projects and ATL COM classes, see [ATL COM Desktop Components](../../atl/atl-com-desktop-components.md).
@@ -44,6 +52,8 @@ For more information on ATL projects and ATL COM classes, see [ATL COM Desktop C
4452
|**Not supported**|Specifies that the object excludes transactions. Adds the component attribute macro custom(TLBATTR_TRANS_NOTSUPP,0) to the .h file (attributed projects) or to the .idl file (nonattributed projects).|
4553
|**Requires new**|Specifies that the object is always the root of a transaction stream by adding the component attribute macro custom(TLBATTR_TRANS_REQNEW,0) to the .h file (attributed projects) or to the .idl file (nonattributed projects).|
4654

55+
::: moniker-end
56+
4757
## See also
4858

4959
[ATL COM+ 1.0 Component Wizard](../../atl/reference/atl-com-plus-1-0-component-wizard.md)<br/>

docs/data/odbc/record-field-exchange-working-with-the-wizard-code.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: "Record Field Exchange: Working with the Wizard Code"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["DoFieldExchange method, overriding", "Unicode, with database classes", "field data members, declaring", "RFX (ODBC), wizard code", "RFX (ODBC), implementing", "field data members", "ODBC, RFX", "m_nParams data member, initializing", "m_nFields data member", "m_nParams data member", "overriding, DoFieldExchange", "m_nFields data member, initializing"]
55
ms.assetid: f00d882a-ff1b-4a75-9717-98d8762bb237
66
---
77
# Record Field Exchange: Working with the Wizard Code
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic explains the code that the MFC Application Wizard and **Add Class** (as described in [Adding an MFC ODBC Consumer](../../mfc/reference/adding-an-mfc-odbc-consumer.md)) write to support RFX and how you might want to alter that code.
1013

1114
> [!NOTE]

docs/data/odbc/recordset-architecture-odbc.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ This topic describes the data members that comprise the architecture of a record
2121
2222
## <a name="_core_a_sample_class"></a> Sample Class
2323

24+
> [!NOTE]
25+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
26+
2427
When you use the [MFC ODBC Consumer Wizard](../../mfc/reference/adding-an-mfc-odbc-consumer.md) from **Add Class** wizard to declare a recordset class derived from `CRecordset`, the resulting class has the general structure shown in the following simple class:
2528

2629
```cpp

docs/data/odbc/recordset-creating-and-closing-recordsets-odbc.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: "Recordset: Creating and Closing Recordsets (ODBC)"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["ODBC recordsets, creating", "recordsets, creating", "recordsets, opening", "recordsets, closing", "ODBC recordsets, closing", "ODBC recordsets, opening"]
55
ms.assetid: 8d2aac23-4396-4ce2-8c60-5ecf1b360d3d
66
---
77
# Recordset: Creating and Closing Recordsets (ODBC)
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic applies to the MFC ODBC classes.
1013

1114
To use a recordset, construct a recordset object and then call its `Open` member function to run the recordset's query and select records. When you finish with the recordset, close and destroy the object.

docs/data/odbc/recordset-declaring-a-class-for-a-predefined-query-odbc.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: "Recordset: Declaring a Class for a Predefined Query (ODBC)"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["ODBC recordsets, queries", "predefined queries and recordsets", "stored procedures, and recordsets", "recordsets, predefined queries", "recordsets, stored procedures"]
55
ms.assetid: d27c4df9-dad2-4484-ba72-92ab0c8ff928
66
---
77
# Recordset: Declaring a Class for a Predefined Query (ODBC)
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic applies to the MFC ODBC classes.
1013

1114
This topic explains how to create a recordset class for a predefined query (sometimes called a stored procedure, as in Microsoft SQL Server).

docs/data/odbc/recordset-declaring-a-class-for-a-table-odbc.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: "Recordset: Declaring a Class for a Table (ODBC)"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["ODBC recordsets, declaring class for tables", "recordsets, declaring classes for tables"]
55
ms.assetid: 3fe286c2-3f3d-493d-9d8c-762310939d08
66
---
77
# Recordset: Declaring a Class for a Table (ODBC)
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic applies to the MFC ODBC classes.
1013

1114
The most common recordset class opens a single table. To declare a recordset class for a single table, use the [MFC ODBC Consumer Wizard](../../mfc/reference/adding-an-mfc-odbc-consumer.md) from **Add Class** and choose each column you want by naming a corresponding recordset field data member.

docs/data/odbc/recordset-dynamically-binding-data-columns-odbc.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Recordset: Dynamically Binding Data Columns (ODBC)"
3-
ms.date: "11/19/2018"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["ODBC recordsets [C++], binding columns dynamically", "data binding [C++], recordset columns", "recordsets [C++], binding data", "data binding [C++], columns in recordsets", "columns [C++], binding to recordsets"]
55
ms.assetid: bff67254-d953-4ae4-9716-91c348cb840b
66
---
@@ -19,6 +19,9 @@ Recordsets manage binding table columns that you specify at design time, but the
1919
2020
## <a name="_core_when_you_might_bind_columns_dynamically"></a> When You Might Bind Columns Dynamically
2121

22+
> [!NOTE]
23+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
24+
2225
At design time, the MFC Application Wizard or [MFC ODBC Consumer Wizard](../../mfc/reference/adding-an-mfc-odbc-consumer.md) (from **Add Class**) creates recordset classes based on the known tables and columns on your data source. Databases can change between when you design them and later when your application uses those tables and columns at run time. You or another user might add or drop a table or add or drop columns from a table that your application's recordset relies on. This probably is not a concern for all data-access applications, but if it is for yours, how can you cope with changes in the database schema, other than by redesigning and recompiling? The purpose of this topic is to answer that question.
2326

2427
This topic describes the most common case in which you might bind columns dynamically — having begun with a recordset based on a known database schema, you want to handle additional columns at run time. The topic further assumes that the additional columns map to `CString` field data members, the most common case, although suggestions are supplied to help you manage other data types.

docs/data/odbc/recordset-how-recordsets-select-records-odbc.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: "Recordset: How Recordsets Select Records (ODBC)"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["recordsets, selecting records", "record selection, ODBC recordsets", "SQL statements, recordset", "records, selecting", "recordsets, constructing SQL statements", "ODBC recordsets, selecting records"]
55
ms.assetid: 343a6a91-aa4c-4ef7-b21f-2f2bfd0d3787
66
---
77
# Recordset: How Recordsets Select Records (ODBC)
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic applies to the MFC ODBC classes.
1013

1114
This topic explains:

docs/data/odbc/recordset-obtaining-sums-and-other-aggregate-results-odbc.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ ms.assetid: 94500662-22a4-443e-82d7-acbe6eca447b
66
---
77
# Recordset: Obtaining SUMs and Other Aggregate Results (ODBC)
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic applies to the MFC ODBC classes.
1013

1114
This topic explains how to obtain aggregate results using the following [SQL](../../data/odbc/sql.md) keywords:

docs/data/odbc/recordset-odbc.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Recordset (ODBC)"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["recordsets, snapshots", "recordsets, creating", "dynamic recordsets", "forward-only recordsets", "recordsets, dynasets", "ODBC recordsets, CRecordset objects", "ODBC recordsets", "recordsets, about recordsets", "snapshots, ODBC recordsets", "dynasets"]
55
ms.assetid: 333337c5-575e-4d26-b5f6-47166ad7874d
66
---
@@ -19,10 +19,7 @@ A [CRecordset](../../mfc/reference/crecordset-class.md) object represents a set
1919
An example of a recordset based on a table is "all customers," which accesses a Customer table. An example of a query is "all invoices for Joe Smith." An example of a recordset based on a stored procedure (sometimes called a predefined query) is "all of the delinquent accounts," which invokes a stored procedure in the back-end database. A recordset can join two or more tables from the same data source, but not tables from different data sources.
2020

2121
> [!NOTE]
22-
> For information about deriving recordset classes with the wizards, see [Adding an MFC ODBC Consumer](../../mfc/reference/adding-an-mfc-odbc-consumer.md) and [Database Support, MFC Application Wizard](../../mfc/reference/database-support-mfc-application-wizard.md).
23-
24-
> [!NOTE]
25-
> Some ODBC drivers support views of the database. A view in this sense is a query originally created with the SQL `CREATE VIEW` statement. The wizards currently do not support views, but it is possible to code this support yourself.
22+
> Some ODBC drivers support views of the database. A view in this sense is a query originally created with the SQL `CREATE VIEW` statement.
2623
2724
## <a name="_core_recordset_capabilities"></a> Recordset Capabilities
2825

0 commit comments

Comments
 (0)