am using sql server 2008 R2..
i need to insert an image through sql cmd ?
my table structure is
SELECT TOP 1000 [AddressID]
[Image]
FROM [xxx].[dbo].[tblAddress]
how can i insert an image where AddressID='1' ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Sep 10, 2015, 1:01 AM EDT
Ruga Lincy35 reputationPosted Sep 10, 2015, 1:04 AM EDT
Raja TRank #685 · 3.5K reputationPosted Sep 10, 2015, 1:05 AM EDT
/* Insert a new category with an image */
INSERT INTO Categories(CategoryName, CategoryPicture)
Values ('Another Category', (SELECT * FROM OPENROWSET(BULKN'C:\Temp\AnotherCategory.jpg', SINGLE_BLOB) AS CategoryImage))
Joginder BangerRank #360 · 7K reputationPosted Sep 10, 2015, 1:08 AM EDT
Joginder BangerRank #360 · 7K reputationPosted Sep 10, 2015, 1:10 AM EDT
Raja TRank #685 · 3.5K reputationPosted Sep 10, 2015, 1:20 AM EDT
Joginder BangerRank #360 · 7K reputationPosted Sep 10, 2015, 1:23 AM EDT
Ruga Lincy35 reputationPosted Sep 10, 2015, 1:30 AM EDT
Ruga Lincy35 reputationPosted Sep 10, 2015, 1:31 AM EDT
Ruga Lincy35 reputationPosted Sep 10, 2015, 1:33 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Sep 10, 2015, 1:34 AM EDT
Raja TRank #685 · 3.5K reputationPosted Sep 10, 2015, 1:40 AM EDT
Raja TRank #685 · 3.5K reputationPosted Sep 10, 2015, 1:46 AM EDT
Munesh SharmaRank #174 · 13.9K reputationPosted Sep 10, 2015, 2:10 AM EDT