Error when a try a query from an external table

SQL 1 Reputation point
2022-01-17T20:31:26.557+00:00

Hi

I worked on SQL Server 2019 (CU12) and Windows 2019. Polybass is installed

I created an ODBC connection with the driver Denodo (9.03.05.05)
I created an external table without issue.
The column definitions in Denodo and SQL Server are the same. Same datatype
When I try a select statement from this external table without a decimal, no issue.
If I include a decimal, I have this error.

Msg 7320, Level 16, State 110, Line 24
Cannot execute the query "Remote Query" against OLE DB provider "MSOLEDBSQL" for linked server "(null)". 105082;
Generic ODBC error: OdbcBufferReader.ReadBuffer, error in OdbcReadBuffer: SqlState: IM001, NativeError: 0, 'Error calling: SQLSetDescRec(this->GetHdesc(),
(SQLSMALLINT)column->idxServerCol, (SQLSMALLINT)column->odbcReadType, 0, column->valueLength, (SQLSMALLINT)column->precision, (SQLSMALLINT)column->scale,
(SQLPOINTER)(pBuffer + column->valueOffset), (SQLLEN *)indPtr, (SQLLEN *)indPtr), SQL return code: -1 | SQL Error Info: Error <1>: ErrorMsg:
[Microsoft][ODBC Driver Manager] Driver does not support this function | Error calling: pReadConn->ReadBuffer(pBuffer, bufferOffset, bufferLength, pBytesRead, pRowsRead) |
state: FFFF, number: 214, active connections: 3', Connection String: Dsn=DenodoODBC;Driver={DenodoODBC Unicode(x64)};server=10.211.233.102;port=9996;database=portail.

Thanks

SQL Server | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.