PHP код:
ODBCConnection OC;
LoginProperty LP;
Statement St;
ResultSet rs;
str sql = "select get_command_id()";
;
LP = new LoginProperty();
LP.setDSN("Generators"); // имя соединения в system DSN
OC = new ODBCConnection(LP);
St = OC.createStatement();
rs = st.executeQuery(sql);
while(rs.next())
{
info(rs.getString(1));
}