File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I write to a memo field in MS Access?
 
Similar Threads
memo field in Access
memo data type in ms access
Memo field in SQL
Problem with inserting into MS Access Memo field.
memo field in SQL