This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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!
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 ]
Joined: Jun 27, 2002
Thanks Jaime, That's exactly what I was looking for!