.NETGURU
Problem reading long MS Access Memo fields
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-oledb' list.


Ignacio Calvo
-- Moved from [aspngfreeforall] to [ngfx-oledb] by Marcie Jones <Click here to reveal e-mail address> --

When the Memo field is over 255 characters, OleDbDataAdapter doesn't
Fill well my DataTable (only the first 255 characters). I tried with
OleDbDataReader, GetChars and filling a StringBuilder, and it seems it
only has 255 characters; it doesn't reach the rest.

Please help!

Saludos from Spain! Ignacio Calvo

Reply to this message...
 
    
TBrewi@aol.com
Ignacio, Saludos from California!

I'm not having any problem reading back more than 255 chars from a memo field
in an Access basetable. I'm using both OleDbDataAdapter and OleDbDataReader
and I'm binding to DataGrids, DataLists, and Repeaters -- all in the usual
fashion. No special tricks. Are you sure there are more than 255 chars in
the memo fields in the database? I'm using a textbox to collect the data
from the user and I explicitly state the max chars (500) I'm willing to
accept....

<asp:textbox id="tbxDescription" runat="server" maxlength="500"
textmode="MultiLine"></asp:textbox>

-- Tim :)

Timothy M. Brewi

[Original message clipped]

Reply to this message...
 
    
Ignacio Calvo
I've found a workaround. The SQL SELECT I use joins 2 tables. When I
SELECT the tables separately and manage to "join" the data using
DataTables, the data is retrieved correctly. So it is a problem only
when directly requesting two joined tables, for example:

    adp =3D New OleDbDataAdapter("SELECT * FROM T1 INNER JOIN T2 ON
T1.ID=3DT2.ID", cnx)

Is this a bug?

-----Mensaje original-----
De: Ignacio Calvo [mailto:Click here to reveal e-mail address]=20
Enviado el: mi=E9rcoles, 24 de julio de 2002 11:50
Para: ngfx-oledb
Asunto: [ngfx-oledb] Problem reading long MS Access Memo fields

-- Moved from [aspngfreeforall] to [ngfx-oledb] by Marcie Jones
<Click here to reveal e-mail address> --

When the Memo field is over 255 characters, OleDbDataAdapter doesn't
Fill well my DataTable (only the first 255 characters). I tried with
OleDbDataReader, GetChars and filling a StringBuilder, and it seems it
only has 255 characters; it doesn't reach the rest.
=20
Please help!
=20
Saludos from Spain! Ignacio Calvo

| [ngfx-oledb] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.aspfriends.com/aspfriends/ngfx-oledb.asp =3D JOIN/QUIT

Reply to this message...
 
 
System.Data.DataTable
System.Data.OleDb.OleDbDataAdapter
System.Data.OleDb.OleDbDataReader
System.Text.StringBuilder




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification