Solved

ADO recordset does not return all column values

Posted on 2006-06-16
5
318 Views
Last Modified: 2012-08-13

Hello EE

I use stored procedure to select a record that consists of at least 40 columns and two of them are text as datatype. I noticed that when I read the recordset in VB6, some of the fields are blank but it has values in the database. If I do not include the two text columns, I get all the results I need. It appears to have some kind of limit in ADO recordset in VB6 because I get the results I need in Query Analyzer. How I get around this in VB6?

Thanks


0
Comment
Question by:lunchbyte
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:leonstryker
ID: 16922175
You should conver the data to Varchar in your final select.

Leon
0
 
LVL 5

Author Comment

by:lunchbyte
ID: 16922277
What if it exceeds 8,000 characters.
0
 
LVL 29

Accepted Solution

by:
leonstryker earned 500 total points
ID: 16922302
Then you will need to use ADO Stream object to return tht data.

Leon
0
 
LVL 5

Author Comment

by:lunchbyte
ID: 16922317
That was the keyword I need to do my research on. Thanks.
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 16922323
No problem, thanks for the grade,

Leon
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question