How to insert a blob into a database using sql server management studio

后端 未结 6 1168
暗喜
暗喜 2020-11-28 04:04

How can I easily insert a blob into a varbinary(MAX) field?

As an example:

thing I want to insert is: c:\\picture.png
the table is mytable

6条回答
  •  无人及你
    2020-11-28 04:32

    Ok... this took me way too long. The sql-management studio tool is just not up to simple things like this (which I've noticed before when looking for where to set the timeout on queries, and it was done in 4 different locations)

    I downloaded some other sql editor package (sql maestro in my case). And behold it includes a blob editor where you can look at blobs, and load new blobs into these field.

    thanks for the input!

提交回复
热议问题