使用链接服务器连接将 IBM i 系列数据库 table 中的数据插入 SNOWFLAKE 数据库 table
INSERT data From IBM i-series database table into SNOWFLAKE database table using Linked server connection
从 IBM i 系列数据库(创建链接服务器连接 -SOFT)table 将数据插入 SNOWFLAKE 数据库 table(创建链接服务器连接 -SF_64)
链接服务器连接(在 SQL 服务器之一中创建)
SOFT - 与 IBM Iseries 数据库的链接服务器连接
SF_64 - 与 IBM Iseries 数据库的链接服务器连接
INSERT INTO [SF_64].[PROD].[REPORTING].[DPMPPHY_SSIS_TESTING]
SELECT * FROM OPENQUERY(SOFT, 'SELECT * FROM ABC.DPMPPHY')
在 SQL 服务器
中执行上述查询时出现以下错误
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "MSDASQL" for linked server "SF_64" reported an error. The provider did not give any information about the error.
Msg 7312, Level 16, State 1, Line 1
Invalid use of schema or catalog for OLE DB provider "MSDASQL" for linked server "SF_64". A four-part name was supplied, but the provider does not expose the necessary interfaces to use a catalog or schema.
INSERT INTO OPENQUERY(SF_64,'SELECT * FROM REPORTING.DPMPPHY_SSIS_TESTING') SELECT *FROM OPENQUERY(SOFT,'SELECT * FROM ABC.DPMPPHY')
从 IBM i 系列数据库(创建链接服务器连接 -SOFT)table 将数据插入 SNOWFLAKE 数据库 table(创建链接服务器连接 -SF_64)
链接服务器连接(在 SQL 服务器之一中创建) SOFT - 与 IBM Iseries 数据库的链接服务器连接 SF_64 - 与 IBM Iseries 数据库的链接服务器连接
INSERT INTO [SF_64].[PROD].[REPORTING].[DPMPPHY_SSIS_TESTING]
SELECT * FROM OPENQUERY(SOFT, 'SELECT * FROM ABC.DPMPPHY')
在 SQL 服务器
中执行上述查询时出现以下错误Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "MSDASQL" for linked server "SF_64" reported an error. The provider did not give any information about the error.
Msg 7312, Level 16, State 1, Line 1
Invalid use of schema or catalog for OLE DB provider "MSDASQL" for linked server "SF_64". A four-part name was supplied, but the provider does not expose the necessary interfaces to use a catalog or schema.
INSERT INTO OPENQUERY(SF_64,'SELECT * FROM REPORTING.DPMPPHY_SSIS_TESTING') SELECT *FROM OPENQUERY(SOFT,'SELECT * FROM ABC.DPMPPHY')