简体   繁体   English

PolyBase 基于 SQL 服务器 2019:IBM DB2 外部表

[英]PolyBase on SQL Server 2019: IBM DB2 External tables

I need to make the data from the DB2 10.5 database available as an external table on a PolyBase enabled SQL Server 2019 instance and running into a problem...我需要将 DB2 10.5 数据库中的数据作为启用 PolyBase 的 SQL Server 2019 实例上的外部表提供并遇到问题...

In DB2 version 11.1 IBM added the LIMIT clause (LIMIT ) In DB2 version 10.5 IBM was still using the FETCH clause (FETCH FIRST ROWS ONLY)在 DB2 11.1 版中,IBM 添加了 LIMIT 子句 (LIMIT) 在 DB2 10.5 版中,IBM 仍在使用 FETCH 子句(仅 FETCH FIRST ROWS)

SQL server is miss translating a T-SQL TOP clause into LIMIT instead of the FETCH that this database requires. SQL 服务器未将 T-SQL TOP 子句转换为 LIMIT 而不是该数据库所需的 FETCH。

Has anyone run into this issue before?有没有人遇到过这个问题? If so does anyone have a workaround for this limitation?如果是这样,是否有人对此限制有解决方法?

If you have control over the Db2 server (or can request changes on it) you can use the Db2 compatibility feature .如果您可以控制 Db2 服务器(或可以请求对其进行更改),则可以使用 Db2 兼容性功能

Set the registry variable DB2_COMPATIBILITY_VECTOR :设置注册表变量DB2_COMPATIBILITY_VECTOR

db2set DB2_COMPATIBILITY_VECTOR=MYS

and restart the instance.并重新启动实例。 It will make Db2 recognize LIMIT and OFFSET clauses.它将使 Db2 识别LIMITOFFSET子句。 Setting just this bit should not affect other behaviour of the Db2 server.仅设置此位不应影响 Db2 服务器的其他行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IBM DB2到SQL Server - IBM DB2 to SQL Server SQL Server 2019 Polybase 创建外部表错误“此操作需要在目标服务器中启用 PolyBase” - SQL Server 2019 Polybase Create External Table error "This operation requires PolyBase to be enabled in the target server" 使用PolyBase从SQL Server创建外部表到hadoop的问题 - Issue creating external tables from sql server to hadoop using polybase 使用 Polybase 在 SQL Server 2016 中创建外部表的问题 - Problem with creating external tables in SQL Server 2016 using Polybase 在 SQL Server 2019 中安装 PolyBase 时出错 - Error during PolyBase installation in SQL Server 2019 Sql Server 2019 Polybase 功能问题 - Sql Server 2019 Polybase feature issue 是否可以在 SQL Server 2019 中为 Polybase 外部表设置行级安全性? - it's possible do Row Level Security for Polybase external table in SQL Server 2019? SQL Server 2019 Polybase MongoDB 在外部表中找不到用户定义的列 - SQL Server 2019 Polybase MongoDB user defined column was not found in the external table 特殊字符从 SQL 服务器链接服务器到 IBM DB2 - Special characters from SQL Server Linked Server to IBM DB2 如何仅使用 SQL 查询来检查给定 SQL 服务器是否支持外部表(PolyBase 对象)? - How to check if External Tables (PolyBase objects) are supported on given SQL Server using just SQL query?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM