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

READTEXT - text data type

Status
Not open for further replies.

Joiner

MIS
Jun 20, 2001
22
US
Does anyone know if it is possible to retrieve data from a text field in the same select statement with other fields? For example - I have a text field that cannot be retrieved with a simple select statement due to size. The following obviously does not work. Does anyone know if/how I can do this?

declare @ptrtext varbinary
select @ptrtext = TEXTPTR(my_notes) from my_table where my_id between 1 and 5

select my_id,
my_name,
READTEXT @ptrtext my_table.my_notes 0 18000
from my_table
where my_id between 1 and 5
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top