Skip to content

Commit 695ea88

Browse files
committed
acrolinx
1 parent 13f3eb2 commit 695ea88

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/mfc/reference/cdaoquerydef-class.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class CDaoQueryDef : public CObject
4141
|[CDaoQueryDef::GetFieldCount](#getfieldcount)|Returns the number of fields defined by the querydef.|
4242
|[CDaoQueryDef::GetFieldInfo](#getfieldinfo)|Returns information about a specified field defined in the query.|
4343
|[CDaoQueryDef::GetName](#getname)|Returns the name of the querydef.|
44-
|[CDaoQueryDef::GetODBCTimeout](#getodbctimeout)|Returns the timeout value used by ODBC (for an ODBC query) when the querydef is executed. This determines how long to allow for the query's action to complete.|
44+
|[CDaoQueryDef::GetODBCTimeout](#getodbctimeout)|Returns the timeout value used by ODBC (for an ODBC query) when the querydef is executed which determines how long to allow for the query's action to complete.|
4545
|[CDaoQueryDef::GetParameterCount](#getparametercount)|Returns the number of parameters defined for the query.|
4646
|[CDaoQueryDef::GetParameterInfo](#getparameterinfo)|Returns information about a specified parameter to the query.|
4747
|[CDaoQueryDef::GetParamValue](#getparamvalue)|Returns the value of a specified parameter to the query.|
@@ -70,7 +70,7 @@ class CDaoQueryDef : public CObject
7070
A querydef is a data access object that contains the SQL statement that describes a query, and its properties, such as "Date Created" and "ODBC Timeout." You can also create temporary querydef objects without saving them, but it's convenient—and much more efficient—to save commonly reused queries in a database. A [CDaoDatabase](../../mfc/reference/cdaodatabase-class.md) object maintains a collection, called the QueryDefs collection, that contains its saved querydefs.
7171
7272
> [!NOTE]
73-
> The DAO database classes are distinct from the MFC database classes based on Open Database Connectivity (ODBC). All DAO database class names have the "CDao" prefix. You can still access ODBC data sources with the DAO classes. In general, the MFC classes based on DAO are more capable than the MFC classes based on ODBC; the DAO-based classes can access data, including through ODBC drivers, via their own database engine. The DAO-based classes also support Data Definition Language (DDL) operations, such as adding tables via the classes, without having to call DAO directly.
73+
> The DAO database classes are distinct from the Microsoft Foundation Class (MFC) database classes based on Open Database Connectivity (ODBC). All DAO database class names have the "CDao" prefix. You can still access ODBC data sources with the DAO classes. In general, the MFC classes based on DAO are more capable than the MFC classes based on ODBC; the DAO-based classes can access data, including through ODBC drivers, via their own database engine. The DAO-based classes also support Data Definition Language (DDL) operations, such as adding tables via the classes, without having to call DAO directly.
7474
7575
## Usage
7676
@@ -99,11 +99,11 @@ You can use a querydef object for any of the following purposes:
9999
100100
- To call the object's `Execute` member function to directly execute an action query or a SQL pass-through query
101101
102-
You can use a querydef object for any type of query, including select, action, crosstab, delete, update, append, make-table, data definition, SQL pass-through, union, and bulk queries. The content of the SQL statement that you supply determines the query's type. For information about query types, see the `Execute` and [`GetType`](#gettype) member functions. Recordsets are commonly used for row-returning queries, usually those using the **SELECT ... FROM** keywords. `Execute` is most commonly used for bulk operations. For more information, see [`Execute`](#execute) and [`CDaoRecordset`](../../mfc/reference/cdaorecordset-class.md).
102+
You can use a querydef object for any type of query, including select, action, crosstab, delete, update, append, make-table, data definition, SQL pass-through, union, and bulk queries. The content of the SQL statement that you supply determines the query's type. For information about query types, see the `Execute` and [`GetType`](#gettype) member functions. Recordsets are commonly used for row-returning queries, usually queries using the **SELECT ... FROM** keywords. `Execute` is most commonly used for bulk operations. For more information, see [`Execute`](#execute) and [`CDaoRecordset`](../../mfc/reference/cdaorecordset-class.md).
103103
104104
## Querydefs and Recordsets
105105
106-
To use a querydef object to create a `CDaoRecordset` object, you typically create or open a querydef as described above. Then construct a recordset object, passing a pointer to your querydef object when you call [`CDaoRecordset::Open`](../../mfc/reference/cdaorecordset-class.md#open). The querydef you pass must be in an open state. For more information, see class [`CDaoRecordset`](../../mfc/reference/cdaorecordset-class.md).
106+
To use a querydef object to create a `CDaoRecordset` object, you typically create or open a querydef as described previously. Then construct a recordset object, passing a pointer to your querydef object when you call [`CDaoRecordset::Open`](../../mfc/reference/cdaorecordset-class.md#open). The querydef you pass must be in an open state. For more information, see class [`CDaoRecordset`](../../mfc/reference/cdaorecordset-class.md).
107107
108108
You can't use a querydef to create a recordset (the most common use for a querydef) unless it's in an open state. Put the querydef into an open state by calling either `Open` or `Create`.
109109
@@ -150,7 +150,7 @@ BOOL CanUpdate();
150150
151151
### Return Value
152152
153-
Nonzero if you're permitted to modify the querydef; otherwise 0.
153+
Nonzero if you can modify the querydef; otherwise 0.
154154
155155
### Remarks
156156
@@ -160,7 +160,7 @@ You can modify the querydef if:
160160
161161
- You have update permissions for the database.
162162
163-
This depends on whether you've implemented security features. MFC doesn't provide support for security; you must implement it yourself by calling DAO directly or by using Microsoft Access. See the topic "Permissions Property" in DAO Help.
163+
This depends on whether you implemented security features. MFC doesn't provide support for security; you must implement it yourself by calling DAO directly or by using Microsoft Access. See the topic "Permissions Property" in DAO Help.
164164
165165
## <a name="cdaoquerydef"></a> CDaoQueryDef::CDaoQueryDef
166166
@@ -501,7 +501,7 @@ For related information, see the topic "PARAMETERS Declaration (SQL)" in DAO Hel
501501
502502
## <a name="getrecordsaffected"></a> CDaoQueryDef::GetRecordsAffected
503503
504-
Call this member function to determine how many records were affected by the last call of [Execute](#execute).
504+
Call this member function to determine how many records are affected by the last call of [Execute](#execute).
505505
506506
```
507507
long GetRecordsAffected();
@@ -732,7 +732,7 @@ The ordinal position of the parameter in the querydef's Parameters collection. Y
732732

733733
### Remarks
734734

735-
The parameter must already have been established as part of the querydef's SQL string. You can access the parameter either by name or by its ordinal position in the collection.
735+
The parameter must already be established as part of the querydef's SQL string. You can access the parameter either by name or by its ordinal position in the collection.
736736

737737
Specify the value to set as a `COleVariant` object. For information about setting the desired value and type in your `COleVariant` object, see class [COleVariant](../../mfc/reference/colevariant-class.md).
738738

0 commit comments

Comments
 (0)