BUG: Problems Reading and Writing Dynamic Properties of ADOX Column When You Use SQLOLEDB (288444)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q288444 SYMPTOMS When you connect to SQL Server using the SQL Server OLE DB
Provider, if you use ActiveX Data Objects Extensions for DDL and Security
(ADOX), the ADOX Column object exposes six dynamic properties in its Properties
collection: Autoincrement, Default, Fixed Length, Nullable, Primary Key, and Unique. However, any attempt to read one of these properties
on an existing Column in an existing Table generates the following error message:
Error 3251, "Object or provider is not capable..."
You may also encounter problems when you try to set these properties
on a new Column unless you follow specific steps, which are described in the
"More Information" section. RESOLUTION Because you cannot use ADOX to read these Column properties, you can use an ADO Connection or SQL Server Query
Analyzer to run the equivalent T-SQL statements to query object properties; or
you can use SQL Server Enterprise Manager to view the properties manually.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
REFERENCESFor additional information, click the article
numbers below to view the articles in the Microsoft Knowledge Base: 201826 PRB: Error 3265 When Accessing Properties Collection
271483 PRB: Limitations of Using ADOX with Providers Other than Microsoft Jet OLE DB Provider
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbbug kbDatabase kbpending KB288444 |
---|
|