wood burning stoves 2.0*
The moose likes JDBC and the fly likes How do I write to a memo field in MS Access? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How do I write to a memo field in MS Access?" Watch "How do I write to a memo field in MS Access?" New topic
Author

How do I write to a memo field in MS Access?

Yvette Gonzalez
Greenhorn

Joined: Jun 27, 2002
Posts: 10
I am reading a series of strings from a file and then inserting them into an MS Access table. Occasionally when the string is too large I get a java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]String data, right truncated (null).
The field in the table is of type memo and should be large enough to accomodate the size of the strings.
Any suggestions?
Thanks!
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

some times drivers have limits to the size of the string that you can use for querying/updating. If the value is too large, usually you'll have to stream the values in. I got this code to work using MSAccess ( is probably far from efficient, and there may be a better way ):

hope it works for you,
Jamie
[ August 12, 2002: Message edited by: Jamie Robertson ]
Yvette Gonzalez
Greenhorn

Joined: Jun 27, 2002
Posts: 10
Thanks Jaime, That's exactly what I was looking for!
 
 
subject: How do I write to a memo field in MS Access?
 
Similar Threads
Memo field in SQL
memo field in SQL
memo data type in ms access
Problem with inserting into MS Access Memo field.
memo field in Access