Ola pessoal
Tenho uma procedure com 7 parâmetros criada no SQL Server 2008. Essa procedure faz um “select” porém está parando na linha:
" ResultSet rs = callable.executeQuery(); ": Veja essa linha abaixo:
[b]
public Vector PesquisarAgenda(Agenda objAgenda) throws SQLException
{
Conexao conexao = new Conexao();
Vector linhas = new Vector();
CallableStatement callable = conexao.getConexao().prepareCall("{call pesquisaragenda(?,?,?,?,?,?,?)}");
ResultSet rs = callable.executeQuery();
while(rs.next())
{
objAgendaPesquisa = new AgendaPesquisa();
objAgendaPesquisa.setDoutor(rs.getString("doutor"));
objAgendaPesquisa.setNome(rs.getString("nome"));
objAgendaPesquisa.setData(rs.getDate("data"));
objAgendaPesquisa.setHora(rs.getString("hora"));
objAgendaPesquisa.setTipoagendamento(rs.getString("tipoagendamento"));
objAgendaPesquisa.setStatus(rs.getString("status"));
Vector novalinha = new Vector();
novalinha.addElement(objAgendaPesquisa.getDoutor());
novalinha.addElement(objAgendaPesquisa.getNome());
novalinha.addElement(objAgendaPesquisa.getData());
novalinha.addElement(objAgendaPesquisa.getHora());
novalinha.addElement(objAgendaPesquisa.getTipoagendamento());
novalinha.addElement(objAgendaPesquisa.getStatus());
linhas.addElement(novalinha);
}
return linhas;
}
[/b]
O que pode ser ?