Insert image into SQL Server
image, sql, sql-server
Solution
you can try like this
CREATE TABLE ImageTable
(
Id int,
Name varchar(50) ,
Photo varbinary(max)
)
INSERT INTO ImageTable (Id, Name, Photo)
SELECT 1, 'test', BulkColumn
FROM Openrowset( Bulk 'C:\test.jpg', Single_Blob) as image
Problem
I want to insert in a table an `(image , id, Code)` but I don't know how to do this . What I am looking for is how to insert an image not url.