Galera,
Estou com o seguinte problema, executo uma procedure no SQLServer 2000 que retorna 8000 bytes no query analyzer, ao rodar no java só retorna 4000, vejam parte do código:
connection = this.createNewConnection();
callableStatement = connection.prepareCall("{CALL dbPortalSaude..PR_SEL_COMPS_SITE(?,?)}");
callableStatement.setInt(1, tipousuario);
callableStatement.registerOutParameter(2, java.sql.Types.LONGVARCHAR, 8000);
callableStatement.execute();
String XML = callableStatement.getString(2);
System.out.println(XML.length()); // só retorna 4000
alguém já passou por isso ou sabe o que pode estar acontecendo?
[]s