SQL Server选择更新空值

时间:2012-10-26 04:02:34

标签: sql-server

您好我尝试使用以下示例更新varbinary列中的图片How to insert a blob into a database using sql server management studio

然而,在更新后进行选择varbinary列是空白的,任何想法为什么会发生这种情况?

UPDATE digital_files
   SET digital_file = (
        SELECT *
          FROM OPENROWSET( BULK N'C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\bin\celebrity-pictures-spongebob-patrick-meth-that.jpg',
                           SINGLE_BLOB) AS IMAGE)
WHERE digital_id = 1

0 个答案:

没有答案