Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

READTEXT Problem

Status
Not open for further replies.

Dodecahedron

Technical User
Oct 27, 2005
69
GB
I have used the following to to try to extract rich text format string from an image field. I have used datalength and notice to see that sizes I am dealing with and some are over 50000 in size

declare @val binary(16)
select @val = textptr(fieldname)
from tablename
where id > 0
readtext tablename.fieldname @val 1 10

I then get the message 110 rows affected, but no rtf strings displayed.

Am I using this in the wrong way?

Thanks

Qouth
 
try this:

Code:
declare @val binary(16)
select @val = textptr(fieldname)
from tablename
where id = 111 
readtext tablename.fieldname @val 1 10

use some specific value for the id and see if the above code reads second through 11th character...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top