To insert data to IMAGE/TEXT (both keywords are recommend to replace with nvarbinary(MAX)/nvarchar(MAX) column, the T-SQL scripts as following:
INSERT INTO myTable(Document)
SELECT * FROM OPENROWSET(BULK N’C:\Image1.jpg’, SINGLE_BLOB) rs
The OPENROWSET belongs to the Rowset functions:
https://msdn.microsoft.com/en-us/library/ms187957.aspx
是爲之記。
Alva Chien
2016.3.27