dcsimg
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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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