Consider the following scenario:
- You run a SQL Server 2008 R2 Distributed Query Processor four-part linked server query SELECT statement against a DB2 for Windows V10.5 database.
- The data is stored in DB2 for Windows V10.5 as LONG VARCHAR.
In this scenario, you receive the following error message:
Linked server supplied inconsistent metadata for a column.
The column was reported to have a DBTYPE of 128 at compile time and 129 at run time.