﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Compact Edition  / How can we Update Image in SqlServer Ce??? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 13:05:13 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How can we Update Image in SqlServer Ce???</title><link>http://www.sqlservercentral.com/Forums/Topic479795-323-1.aspx</link><description>...or even more succinctly:[color=#0000FF]UPDATE[/color] ModelSET [Picture] = ([color=#0000FF]SELECT[/color] MyImage.* from Openrowset(Bulk 'C:\cartridge1.jpg', Single_Blob) MyImage)[color=#0000FF]WHERE[/color] Id = 9</description><pubDate>Fri, 17 Jun 2011 00:09:59 GMT</pubDate><dc:creator>max 23838</dc:creator></item><item><title>RE: How can we Update Image in SqlServer Ce???</title><link>http://www.sqlservercentral.com/Forums/Topic479795-323-1.aspx</link><description>Another syntax worked better for me.  I had added a Picture column to a table ([font="Courier New"]Model[/font]), and wanted to update existing rows in the table with images from files - in this case [font="Courier New"]Picture.jpg[/font].  The kicker was realising that you needed 2 aliases (PictureTable and blob).WITH PictureTable AS (SELECT blob.* FROM OPENROWSET(BULK N'C:\Picture.jpg', SINGLE_BLOB) AS blob)UPDATE ModelSET Model.Picture = PictureTable.BulkColumnFROM Model, PictureTableWHERE Model.Id = 2;</description><pubDate>Thu, 16 Jun 2011 10:41:15 GMT</pubDate><dc:creator>max 23838</dc:creator></item><item><title>RE: How can we Update Image in SqlServer Ce???</title><link>http://www.sqlservercentral.com/Forums/Topic479795-323-1.aspx</link><description>Try this[code]UPDATE		tSET		t.Img = s.ImgFROM		MyTable AS tINNER JOIN	OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB) AS s(Img)[/code]</description><pubDate>Sat, 12 Apr 2008 15:06:08 GMT</pubDate><dc:creator>SwePeso</dc:creator></item><item><title>How can we Update Image in SqlServer Ce???</title><link>http://www.sqlservercentral.com/Forums/Topic479795-323-1.aspx</link><description>Hi guys, I would lilke know.I have a column called Image in the database. The type of of the column is Image. I want to upade it. I have an jpg file. How can do that????Lets say I can retrieve an image file from url,then save it into the sql server ce.....not insert ...i want to update...Thank you</description><pubDate>Fri, 04 Apr 2008 03:56:02 GMT</pubDate><dc:creator>sivak42</dc:creator></item></channel></rss>