Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Howto Export image type field to text file

Author  Topic 

p.balazs
Starting Member

3 Posts

Posted - 2007-01-10 : 10:32:27
Hi!

How can I export an image type field (which contains text!) from a table to a text.file?
Now it converts it to Hex characters like "000D000A0065"

Thanks!

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-01-10 : 10:39:09
Obviously it's going to show hex values since the image data type stores binary data even though you are storing text in it.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

p.balazs
Starting Member

3 Posts

Posted - 2007-01-10 : 11:24:03
Ok, it's normal.
The question is, that how can export the image field to readable text.

Thanks
Balazs
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-01-10 : 12:09:36
Convert the IMAGE to hex characters in the file, and convert back to binary when importing.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

p.balazs
Starting Member

3 Posts

Posted - 2007-01-10 : 12:20:35
All that I want: to read the text.
(This is "script" table of the MOM 2005 "Onepoint" database. I want to find a string to detect the name of the script which contains it. From MOM console I can find only for the name of the script. The body is in the image field.)

Balazs, Hungary
Go to Top of Page
   

- Advertisement -