• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is the limitation of getString(column name)?

 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am reading data from excel sheet using jdbc. One string column has a value with 300 characters long. I am using the following statement

This works fine for all other values. But when I read the value with 300 characters long. It will read only 250 charactes. The remaining characters are truncated.
Any idea or pointer to resolve this problem ?

bye for now
sat
 
Scott Selikoff
author
Bartender
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Might be a driver limitation of some kind, but in general, there's no such limit in most JDBC drivers (at least not lower than 2000 characters). It's probably drawing the line at ~256 because of character encoding.

What driver are you using? It might be best to consult the makers of the driver on the limit.
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This is my connection statement



bye for now
sat
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!