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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to fill an blob field

Status
Not open for further replies.

Geri2

Programmer
Jan 21, 2004
17
DE
Hi all,
I have a little problem. I want to use a the image datatyp but I don't know how to fill it.

Can somebody tell me step by step how it works?

Thanks

Geri
 
Sorry I forgot what I use.

I use MS SQL Enterprise Manager on Version 8.0..
 

Geri,

I suggest looking at the writetext and readtext functions.

Code includes:

Declare @ptrval binary(16)
select @ptrval = textptr(<<imagefield>>)
from <<table>>
where ...
writetext <<table>>.<<imagefield>> @ptrval 'my text...'
go
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top