PRB: "No Such Interface Supported" Error Calling ADOX Method (198535)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q198535 SYMPTOMS When you attempt to add a Foreign Key to an SQL Server
table, the following error is generated: Run time error
'-2147467262 (800004002)': No Such Interface Supported.
Alternatively, under ADO 2.6 and later, you may see the following error:
Run-time error '-2147217792(80040e80)': MatchType is
invalid or the value is not supported by the provider. Or, when
trying to create an SQL Server Database, the following error is generated:
Run time error '-2147467263 (800004001)' Not
implemented NOTE: When using ADO 2.5, the "No Such Interface Supported" error
occurs in both situations described above. CAUSE This is a current limitation of the OLE DB Provider for
Microsoft ODBC and the OLE DB Provider for Microsoft SQL Server. Please see the
ADOX Readme for more information on current limitations of the Microsoft OLE DB
Providers or the documentation for the provider being used. STATUS This behavior is by design.
As a workaround, you
can add the Foreign Key to the table with an ALTER TABLE SQL statement. See the
code in the "More Information" section for an example of how to do this.
REFERENCES For additional information, please see the following
article in the Microsoft Knowledge Base: 198534 INFO: ADOX Readme File Included with ADO 2.1 Components
Modification Type: | Minor | Last Reviewed: | 3/14/2005 |
---|
Keywords: | kbDatabase kberrmsg kbprb KB198535 |
---|
|