Link to home
Start Free TrialLog in
Avatar of ants_4_t
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.
Avatar of umangjoshi
umangjoshi

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.
Avatar of ants_4_t

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
Yes, if i could
ASKER CERTIFIED SOLUTION
Avatar of Cerebro
Cerebro

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial