Microsoft KB Archive/910454

= You may receive an &quot;OLE DB provider '' supplied inconsistent metadata for a column&quot; error message when you issue an SQL query statement against a DB2 table in Host Integration Server =

Article ID: 910454

Article Last Modified on 12/4/2007

-

APPLIES TO


 * Microsoft Host Integration Server 2004 Standard Edition
 * Microsoft Host Integration Server 2000 Standard Edition

-





SYMPTOMS
In Microsoft Host Integration Server, you may receive an error message that is similar to the following when you issue an SQL query statement:

Server: Msg 7356,Level 16,State 1,Line 1 OLE DB provider ' ' supplied inconsistent metadata for a column. Metadata information was changed at execution time. OLE DB error trace [Non-interface error: Column ' ' (compile-time ordinal 5) of object '. . ' was reported to have a DBTYPE of 128 at compile time and 129 at run time].

This behavior occurs if the following conditions are true:
 * You issue a four-part SQL query statement against an IBM DB2 table.
 * The DB2 table contains a column that has a user-defined data type.



CAUSE
Host Integration Server data providers do not support user-defined data types.



WORKAROUND
To work around this behavior, use one of the following methods:  Add the following property to the provider connection string:

&quot;Use Early Metadata=True&quot;

This connection string property forces the provider to use the metadata at prepare time or at compile time. However, this method might not work if the data type changes. Export the data from DB2 to a text file, and then use SQL Data Transformation Services to load the data into the Microsoft SQL Server database.



STATUS
This behavior is by design.

The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Additional query words: UDT

Keywords: kberrmsg kbinfo kbhis2000 kbprb kbhis2004 KB910454

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.