Can anyone help me with execution a procedure?
I've tried this code:
    OdbcConnection  connection;
    Statement   stmt;
    LoginProperty LP = new LoginProperty();
    ResultSet   resultSet;
    str         sqlS;
    int i;
    ;

    LP.setServer("TOHA");
    LP.setDSN("TestDB");
    LP.setUsername("test");
    LP.setPassword("test");


    connection = new OdbcConnection(LP);
    stmt = connection.createStatement();
    sqlS = 'execute sys.My_TESTPackage.GetClientsProc(\'test\');';

    resultSet = stmt.executeQuery(sqlS);
    i = stmt.getLastError();
    while (resultSet.next())
    {
        info (resultSet.getString(2));
    }

System generates "[Oracle][ODBC]Syntax error or access violation"
error message.
User "test" has rights to execute this package.
sqlplus executes this query without any problem.
 

--
WBR
toha                mailto:[EMAIL PROTECTED]


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to