BUG: Attributes Property of ADOX Columns Collection May Cause Append Method to Fail (272001)
The information in this article applies to:
- ActiveX Data Objects (ADO) 1.5
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
This article was previously published under Q272001 SYMPTOMS
Attempting to set the Attributes property of a Microsoft ActiveX Data Object (ADOX) Column object to anything other than 0 may cause the Append method of the Tables collection to fail with the following error message:
Run-time error '3265':
Item cannot be found in the collection corresponding to the requested name or ordinal.
CAUSE
This is caused by a bug in the Microsoft ActiveX Data Objects Extensions for Data Definition Language (DDL) and Security, which prevents the setting of the Attributes property of a Column to anything but 0 (where a value of 0 means neither adColFixed nor adColNullable, the two possible values for this property) when other properties of the Column object are also set.
RESOLUTION
If you need to create a nullable or fixed length column, you must create the table through some mechanism other than ADOX, such as DDL SQL statements (CREATE TABLE, for example).
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCESFor additional information on the limitations of ADOX, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
198534 ADOX Readme File Included with ADO 2.1 Components
271483 Design features of ADOX
Modification Type: | Major | Last Reviewed: | 10/16/2002 |
---|
Keywords: | kbBug kbCodeSnippet kbDatabase kbDSupport KB272001 |
---|
|