Posted: Fri Feb 09, 2007 5:33 am Post subject: Problem while Querying the Oracle DB from Message Broker
Novice
Joined: 09 Feb 2007 Posts: 13
We are trying to fetch a result set from a Oracle Database table by issuing the following ESQL statement inside a message flow deployed to Message Broker V6.0
SET OutputLocalEnvironment.Variables.Values[] =
PASSTHRU ('SELECT Field1, Field2, Field3 FROM Schema.TableName WHERE
Field4 = ? AND Field5 = ?', Val_Field4, Val_Field5);
The database table has records that meet this SELECT query. But when the message flow is executed, many a times it returns no result set. There are no issues with the DSN or connectivity to Oracle from the message flow. This query returns the result set if the WHERE clause is removed. (However if this table is created in DB2 the above query always returns the result set).
Has anyone encountered this scenario, should the SELECT query be issued any differently for Oracle? Any pointers in this would be very helpful...
That PASSTHRU syntax might not be what you think it is.
Secondly, it's entirely possible that your Values aren't what you think they are when the query is run. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum