您好我尝试使用以下示例更新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