Conversion of Text datatype to Image datatype

Conversion of Text datatype to Image datatype

Post by Nicholas Moray William » Thu, 09 Aug 2001 21:08:31



Hello,
I know this is not strictly a FTS question. I have a number of htm-files
stored in a column of the Text data type. Is it possible to convert this
data to the Binary data type in order to use the FTS-filters on SQL Server
2000?. If yes what would be the most rational way to go about this. SQL
server does not allow this conversion directly.
thanks

Niels Hansen

 
 
 

Conversion of Text datatype to Image datatype

Post by Hilary Cotte » Fri, 10 Aug 2001 00:01:35


regretably there is no way to do this through EM, SQL DMO,
TSQL, etc AFAIK.

I would suggest some vbscript to connect to your table,
export it out in a row by row fashion the then push it
back into your table in a char/varchar col.

Quote:>-----Original Message-----
>Hello,
>I know this is not strictly a FTS question. I have a
number of htm-files
>stored in a column of the Text data type. Is it possible
to convert this
>data to the Binary data type in order to use the FTS-

filters on SQL Server
Quote:>2000?. If yes what would be the most rational way to go
about this. SQL
>server does not allow this conversion directly.
>thanks

>Niels Hansen

>.


 
 
 

Conversion of Text datatype to Image datatype

Post by John Kan » Sat, 11 Aug 2001 14:49:32


Hilary,
Well, yea, but you forgot about DTS or BCP in/out...
Basicly, to use the new SQL 2000 "Image Filter (IFilter for HTML)" you need
to convert the TEXT column datatype to an IMAGE datatype. This is not easily
done and requires, exporting the data via DTS or BCP out to a file of the
TEXT column, then alterting the table to drop the TEXT column and add an
IMAGE and doc extension column and then import DTS or BCP in the html data
to the IMAGE column. Note, this could all be done in one DTS package.

Once done, you can use the HTML IFilter with the doc extenstion column
(value of: htm or html) and create a FT Index via the FT Wizard and using
the correct word breaker and extension column. When complete, your FTS
quieres will search on the html data and not the html metatags...
Regards,
John


Quote:> regretably there is no way to do this through EM, SQL DMO,
> TSQL, etc AFAIK.

> I would suggest some vbscript to connect to your table,
> export it out in a row by row fashion the then push it
> back into your table in a char/varchar col.

> >-----Original Message-----
> >Hello,
> >I know this is not strictly a FTS question. I have a
> number of htm-files
> >stored in a column of the Text data type. Is it possible
> to convert this
> >data to the Binary data type in order to use the FTS-
> filters on SQL Server
> >2000?. If yes what would be the most rational way to go
> about this. SQL
> >server does not allow this conversion directly.
> >thanks

> >Niels Hansen

> >.

 
 
 

1. convert image datatype to text datatype

I am trying to convert ASCII based data in a image field
to text. I am able to use the convert function to convert
in to varbinary(8000), then to varchar(8000), and this is
working - mostly. Except, when it finds line return and
tab characters. In place of those characters, I am getting
a "-J", "-K", or something similar. Is there a way to
successfully these these hexidecimal characters?

2. Recordset and Word Mail Merge

3. MSSQL Image datatype VS. Paradox Graphics DataType

4. Searching recordset problem/datagrid display

5. All text datatypes vs. more specific datatypes

6. spx access problem oracle6 and oracle7 systems.

7. text datatype and char datatype

8. US-IL-Chicago: Pick/UniVerse/UniData Programmer Needed

9. Datatype Conversion - binary to text

10. text and image datatype, sql server 2000

11. Text/Image Datatype - Inserting Data