ants_4_t
asked on
getString() is truncating my varchar from recordset
I am trying to output a storedprocedure which returns a record fine. When I try outputting a varchar it on my JSP page I am using getString(). It seems to be truncating it around 256 characters.
use clob inseted of varchar
if you can't change the database to clob as umangjoshi is advising, you could try to use the
ResultSet.getBytes() or
ResultSet.getAsciiStream()
for retrieving large varchar values.
ResultSet.getBytes() or
ResultSet.getAsciiStream()
for retrieving large varchar values.
ASKER
I've managed to solve the problem. The driver I was using was SQL7 compatible. Oops. All sort now.
Would you like this question PAQd and your pts refunded?
CJ
CJ
ASKER
Yes, if i could
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.