1. 程式人生 > >sqlserver插入圖片數據

sqlserver插入圖片數據

ear SQ row eid select lec rowset div 圖片

-- 插入
insert into [CHOLPOR].[dbo].[t_image](id, name) select ‘1‘, BulkColumn from openrowset(bulk N‘e:\1.jpg‘, single_blob) as blob;

-- 更新
update dbo.EArcImage set EArcImage = (select BulkColumn from openrowset(bulk N‘e:\1.jpg‘, single_blob) as blob )where earcimage.EArcImageID=‘D1241F59-3AB8-4A03-9895-B20450D03077‘

sqlserver插入圖片數據