复制活动中的图像数据类型问题 [英] Issue with Image Data Type in Copy Activity

查看:116
本文介绍了复制活动中的图像数据类型问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用"复制数据"活动在图像数据类型之间移动数据时是否有任何问题?

Is any one having issues while using Copy Data activity to move data across image datatype?

这是我得到的错误。

This is the error I am getting.

'Type = System.InvalidOperationException,Message = String类型的给定值从数据源无法转换为指定目标列的类型图像。,Source = System.Data,''Type = System.InvalidCastException,Message =无法将参数
值从String转换为Byte [] 。,Source = System.Data,''Type = System.InvalidCastException,Message =来自&的System.String&的无效的强制转换。 to&'System.Byte []&。,Source = mscorlib,'

'Type=System.InvalidOperationException,Message=The given value of type String from the data source cannot be converted to type image of the specified target column.,Source=System.Data,''Type=System.InvalidCastException,Message=Failed to convert parameter value from a String to a Byte[].,Source=System.Data,''Type=System.InvalidCastException,Message=Invalid cast from 'System.String' to 'System.Byte[]'.,Source=mscorlib,'

源表和目标表具有相同的模式。 

The source and destination tables have the same schema. 

推荐答案

嗨Sarath,

Hi Sarath,

您是否在源/目标表中有图像数据类型?

Do you have image data type in the source/destination tables?

请注意,我们用于图片的数据类型是varbinary(max) 而不是图片数据类型。 这是因为图像数据类型正在
a中删除未来版本的SQL服务器

Note that the data type we’re using for the image is varbinary(max) instead of the image data type.  That’s because the image data type is being removed in a future version of SQL Server.

希望这会有所帮助。


这篇关于复制活动中的图像数据类型问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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