PRB: Distributed Queries Return Error 7356 with MSDAORA (251238)
The information in this article applies to:
- Microsoft OLE DB Provider for Oracle 2.0
- Microsoft OLE DB Provider for Oracle 2.1
- Microsoft SQL Server 7.0
- Microsoft SQL Server 7.0 Service Pack 1
This article was previously published under Q251238 SYMPTOMS
If metadata information changes at execution time, the following error occurs:
Server: Msg 7356, Level 16, State 1, Line 1
OLE DB provider 'MSDAORA' supplied inconsistent metadata for a column.
This error may occur when you use distributed queries in SQL Server that reference a view if you create the underlying table in Oracle under the following conditions:
- You do not specify Nullability in the CREATE TABLE statement.
-and-
- You create a Primary Key using the ALTER TABLE statement
-and-
- You create a view that includes the PRIMARY KEY.
CAUSEIDBSchemaRowset::GetRowset for DBSCHEMA_COLUMNS returns IS_NULLABLE as TRUE.
IColumnsInfo::GetColumnInfo on the rowset returns DBCOLUMNFLAGS_ISNULL as FALSE.
Because of the these discrepancies, distributed queries fail with the 7356 error.
The OLE DB provider, Msdaora.dll, returns the wrong information because the metadata that Oracle returns is incorrect.
RESOLUTION
Specify the Nullability of the column explicitly during the CREATE TABLE statement.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 7/14/2004 |
---|
Keywords: | kbMDACNoSweep kbOracle kbprb KB251238 |
---|
|