无法从 SSIS 访问 DB2 的全局临时表

Unable to access global temp tables of DB2 from SSIS

我在 DB2 中手动创建了全局临时文件 table,并试图在 SSIS DFT 中访问它。但是我无法访问。

注意:会话正在打开

创建脚本:

DECLARE GLOBAL TEMPORARY TABLE temptbl
(id int ) 
WITH Replace 
ON COMMIT PRESERVE ROWS;

错误信息:

Unable to retrieve the column information from data source. Make sure target table in database is available

DECLARED 全局临时 table 的 table 定义未放置到系统目录中。
如果您的工具想要从系统目录中获取这样的定义,您应该使用 CREATED global temporary table

CREATE GLOBAL TEMPORARY TABLE temptbl
(id int ) 
WITH Replace 
ON COMMIT PRESERVE ROWS;