如何使用ssis包将varchar(max)值加载到mysql服务器中 [英] how to load varchar(max) value into mysql server using ssis package

查看:93
本文介绍了如何使用ssis包将varchar(max)值加载到mysql服务器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

     我在ssis中有一个问题

如何加载sql server  VARCHAR(MAX)数据类型列相关数据使用ssis包进入mysql服务器表



来源:产品表(ms sql server)

  ; pid(int)  | productDescrption(varchar(max))



目的地:产品  table(mysql server)



Pid(int)    | productDescription(dt_ntext)



步骤1:拖放oledb源并配置mssql表产品



step2:将productdescription varchar(max)的数据转换更改为dt_next

步骤3:为mysql产品表配置destinaton odbc目的地(这里安装了odbc 32 bitdriver 



和我运行包了$
我得到的错误如下所示

[ODBC目的地[2]]错误:打开数据库连接发生(ODBC)错误。州:'HYC00'。本机错误代码:0。[MySQL] [ODBC 5.2(w)驱动程序] [mysqld-5.7.24-log]不支持执行数据的参数数组



[SSIS.Pipeline]错误:SSIS错误代码DTS_E_PROCESSINPUTFAILED。 组件"ODBC目标"上的ProcessInput方法(2)在处理输入"ODBC目的地输入"时错误代码为0x80004005。 (13)。标识的组件
从ProcessInput方法返回错误。该错误特定于组件,但错误是致命的,将导致数据流任务停止运行。 可能会在此之前发布错误消息,并提供有关失败的更多信息。



您能告诉我如何在ssis中执行此任务 





$


$
    

Hi all,
     I have one question in ssis
how to load sql server  VARCHAR(MAX) data type column related data into mysql server table using ssis package

source : product table ( ms sql server )
  pid (int)  | productDescrption (varchar(max))

Destination : product  table (mysql server )

Pid ( int)   |productDescription ( dt_ntext)

step1:drag and drop oledb source and configurae the mssql table product

step2: change data converstion for productdescription varchar(max) to dt_next
step3: configure the destinaton odbc destination for mysql product table (here odbc 32 bitdriver 
is installed)
and i I ran the package
that tim i got error like below
[ODBC Destination [2]] Error: Open Database Connectivity (ODBC) error occurred. state: 'HYC00'. Native Error Code: 0. [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.24-log]Parameter arrays with data at execution are not supported

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "ODBC Destination" (2) failed with error code 0x80004005 while processing input "ODBC Destination Input" (13). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

can you please tell me how to ahcive this task in ssis 





    

推荐答案

嗨  JAIPALRE, 

Hi JAIPALRE, 

似乎是ODBC驱动程序不支持批量插入,您可以尝试
表名 -
逐行 数据访问模式。 

It seems that the ODBC driver doesn't support Batch insert, you can try the Table Name-Row by Row Data access mode. 

为了提高包性能,您可以使用Balanced Data Distributor并行插入两个ODBC目标。 

And to improve the package performance, you can use Balanced Data Distributor to insert into two ODBC Destination in parallel. 


这篇关于如何使用ssis包将varchar(max)值加载到mysql服务器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆