all groups > sql server programming > november 2005 >
You're in the

sql server programming

group:

Access Text Within A SQL Binary Field


Access Text Within A SQL Binary Field Anthony
11/4/2005 9:10:12 PM
sql server programming:
Is there any way to access the text within a SQL Binary object? For example
if I wanted to count the number of words within a Word document that had been
added to a binary field in the database.

I figure the IFilters used by the Full-Text indexing service must do
Re: Access Text Within A SQL Binary Field Sylvain Lafontaine
11/5/2005 10:40:15 PM
Look for: textptr, readtext, writetext, updatetext, textvalid and
sp_invalidate_textptr in the BOL.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF


[quoted text, click to view]

Re: Access Text Within A SQL Binary Field John Kane
11/6/2005 4:34:01 PM
Anthony,
Out-of-the box with either SQL Server 2000 or SQL Server 2005 (Yukon) this
is not possible. You would need to either parse the text of the MS Word
documents before you inserted the documents into an IMAGE datatype or write
your own IFilter *wrapper* to capture the text into a separate text based
column. The MSDN Platform SDK has code examples and utilities that can be
used to the later, if you want to do this.

Yes, you are correct, that is what the IFilters (Microsoft's and 3rd party)
do.

Regards,
John
--
SQL Full Text Search Blog
http://spaces.msn.com/members/jtkane/


[quoted text, click to view]

AddThis Social Bookmark Button