操作数类型冲突:图像与varchar(max)不兼容

时间:2011-02-07 07:16:36

标签: sql vb.net

当我尝试将数据插入表格并具有图像类型字段时,我收到以下错误。 操作数类型冲突:图像与varchar(max)

不兼容

所以任何人都可以帮我解决这个错误。

提前致谢。

2 个答案:

答案 0 :(得分:0)

随机猜测:图像被varbinary(max)替换

虽然我们正在谈论这个问题......

  • text将是varchar(max)
  • ntext将是nvarchar(max)

答案 1 :(得分:0)

Even though you may specify the parameter names in your code, while preparing the execution the names will be ignored in the actual SQL expression and be placed one after another, so their meaning will depend on their position. Make sure you don't skip any optional parameters and organize them in exact order as they defined in the SQL procedure.