Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Oct 18, 1999

Retrieving Data from a Text Field

Question:
I have a table with a text field that stores a long description. When I use the Select statement to query the table, it only returns 255 characters. How do I extract those data stored in the text field (using VB recordset)?

Answer:
You need to declare a variable for the text chunk you want to manipulate, and a variable to mind the offset into the text field you're working on.

The first fetch out of the text field puts you at position 256 for the next fetch, so grab the second chunk and increment the offset to mind where you are. Continue until you're exhausted.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date