PRB: ADO's Field ATTRIBUTE Property and adFldRowIDLast reviewed: March 12, 1998Article ID: Q182351 |
The information in this article applies to:
SYMPTOMSADO's field Attribute property will not return "adFldRowID" when checked against any data sources being accessed via the OLEDB Provider for ODBC.
CAUSEThe OLEDB Provider for ODBC, which is used by default, cannot access this information because it is not available through ODBC.
RESOLUTIONUse a native OLEDB Provider specific to the data source being used. The data source must also support a field type that maps to OLE DB's definition of a row identifier to be able to return a value of "adFldRowID".
STATUSThis behavior is by design.
MORE INFORMATIONThe "adFldRowID" Attribute maps to OLEDB's DBCOLUMNFLAGS_ISROWID flag. A row that has this flag "contains a persistent row identifier that cannot be written to and has no meaningful value except to identify the row". Using the description above, no column in SQL Server falls into this category. Thus, even when using a native OLEDB Provider for SQL Server, the "adFldRowID" would not be returned via the field's Attribute property.
Steps to Reproduce Behavior
REFERENCESFor more information, refer to the SDK documentation.
Keywords : adoall Version : WINDOWS:1.5 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |