表的数据类型有image,存的时候怎么存?

解决方案 »

  1.   

    http://topic.csdn.net/t/20041009/17/3438209.html
      

  2.   

    2005 直接 openrowset 读取存进去insert tb(imgcol) select * openrowset(bulk 'X:\..\filename', single_blob) as img
      

  3.   

    image/varbinary(max)是同一个概念,2005之前的名称令人误解,2005之后建议使用varbinary(max)代替image,其实是存二进制流的,把图片文件的二进制流存进去,不仅仅图片,其它文档类型都可以存进去,doc,xls等等
    所有的。
      

  4.   

    sorry, 手快漏了 frominsert tb(imgcol) select * from openrowset(bulk 'X:\..\filename', single_blob) as img