• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Yvette Gonzalez
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jaime, That's exactly what I was looking for!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic