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

Retrieving Text Data type(a bit urgent)

Status
Not open for further replies.

choudary

Programmer
Sep 3, 2000
19
ID
I have defined one of the columns of my table as Text datatype where i am storing large amount of text(around 2kb)and while retrieving the data from that field only some part of the data only is getting retrieved.

For this when i referred the Books Online i found an example like this .

USE pubs

GO

DECLARE @ptrval varbinary(16)

SELECT @ptrval = TEXTPTR(pr_info)

FROM pub_info pr INNER JOIN publishers p

ON pr.pub_id = p.pub_id

AND p.pub_name = 'New Moon Books'

READTEXT pub_info.pr_info @ptrval 1 25

GO




but it is also not working fine.

Please help me
Thanks
Choudary


[sig][/sig]
 
You could try storing it in a varchar.
As varchar can go up to about 8000.

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top