Advertisement

05.10.2005 at 12:48AM PDT, ID: 21418546
[x]
Attachment Details

How do I combine BLOB object from two different rows into one?

Asked by sleiman in MS SQL Server

Tags: binary, blob, sql

I have SQL table with a BLOB object.  The BLOB contains an 8K image.  This is due to a limitation in getting a larger chunk generated from the source.  The table also contains an identifier for each BLOB.  So it is possible that an image could spread into 2 or three different rows.  These are small images.  

I need to find a way to merge these object into a single row.  For example:

I have row1 and row2 each with an 8k image.

            PhotoNumber  PhotoPart     Photo
Row1    1000                   0            Binary
Row2    1000                   1            Binary

I need to find a way to locate these two rows based on the PhotoNumber and then merge the two photos together into one row with the same PhotoNumber (1000) in this case.  Row2 will also need to be deleted.

Can this be setup in a trigger so that anytime a multi-part photo hits the system, it gets merged into one row?

Thanks,Start Free Trial
 
Loading Advertisement...
 
[+][-]05.10.2005 at 01:04AM PDT, ID: 13966224

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2005 at 01:10AM PDT, ID: 13966248

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2005 at 01:12AM PDT, ID: 13966257

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2005 at 01:18AM PDT, ID: 13966289

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2005 at 01:57AM PDT, ID: 13966493

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: binary, blob, sql
Sign Up Now!
Solution Provided By: Hilaire
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.11.2005 at 01:44AM PDT, ID: 13975932

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2005 at 11:16PM PDT, ID: 14001387

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.15.2005 at 05:58PM PDT, ID: 14227375

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.19.2005 at 05:20PM PDT, ID: 14253673

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.21.2005 at 07:36PM PDT, ID: 14272240

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 12:11AM PDT, ID: 14909874

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.20.2005 at 12:25AM PDT, ID: 14918052

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.21.2005 at 12:58AM PDT, ID: 14926381

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32