October 15, 2009 at 6:01 am
I am trying to retrieve rows from a venders database where the blob/image contains a certain hex string. Currently we have an Access program that will load all the blobs and then search then in Access. This takes forever. Is there anyway I can search the blobs at the server and only get the rows back with the hex value I'm looking for?
TIA - Jeff.
October 15, 2009 at 8:31 am
HI
You might wanna check Full Text Indexing in BOL, but I dout it can find HEX strings correctly...
If not - your only option (still better than Access) is to use PATINDEX or LIKE
October 15, 2009 at 8:37 am
But can I do a PatIndex or Like on a blob object? I thought you had to pull the blob out of the database first and then process it?
Can you treat it just like any other column in that respect.
Using SQL Server 2005.
October 15, 2009 at 10:03 am
Yes.
Patindex and LIKE are able to treat TEXT columns. Other string functions aren't.
October 15, 2009 at 10:32 am
But I'm not using a text field. I'm using a blob (I'm assuming it's an image but I don't have access to the DB yet)
October 15, 2009 at 12:15 pm
Well...BLOB is an old term, back from the SQL 6.5/ACESS era...
Your data is probably placed inside a varbinary column.
Have a look at this:
October 16, 2009 at 7:50 am
I found out what the table is and it's an image type.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply