| title | COLUMN_NAME | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | a213b9a0-2148-4a08-9111-d9fa8fdec462 | |||||||||||||
| caps.latest.revision | 7 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
Represents a binding on the rowset to the specific column in the rowset. Similar to COLUMN_ENTRY, except that this macro takes the column name instead of the column number.
COLUMN_NAME(
pszName
,
data
)
pszName
[in] A pointer to the column name. The name must be a Unicode string. You can accomplish this by putting an 'L' in front of the name, for example: L"MyColumn".
data
[in] The corresponding data member in the user record.
The COLUMN_NAME_* macros are used in the same places as COLUMN_ENTRY:
-
Between the BEGIN_COLUMN_MAP and END_COLUMN_MAP macros.
-
Between the BEGIN_ACCESSOR and END_ACCESSOR macros.
-
Between the BEGIN_PARAM_MAP and END_PARAM_MAP macros.
Header: atldbcli.h
Macros and Global Functions for OLE DB Consumer Templates
BEGIN_ACCESSOR
BEGIN_ACCESSOR_MAP
BEGIN_COLUMN_MAP
COLUMN_NAME_EX
COLUMN_NAME_LENGTH
COLUMN_NAME_LENGTH_STATUS
COLUMN_NAME_STATUS
COLUMN_NAME_PS
COLUMN_NAME_PS_LENGTH
COLUMN_NAME_PS_STATUS
COLUMN_NAME_PS_LENGTH_STATUS
COLUMN_NAME_TYPE
COLUMN_NAME_TYPE_PS
COLUMN_NAME_TYPE_SIZE
COLUMN_NAME_TYPE_STATUS