on 04-18-2012 11:01 AM
Hi Guru's.
I have a sender adapter which is polling an oracle database. I am doing a direct SQL statement, so not working with Stored Procedures. Is it possible to have a select statement with a parameter value, see below:
I need to achieve the following: SELECT * From TABLE where date = <system date>
<system date> is the parameter.
Hope someone can help me out.
Thanks
Hi,
Is your requirement limited to the above query ? Then you can use DB system variables like SYSDATE for Oracle or GETDATE for MS SQL to extract system date.
Something like
SELECT * From TABLE where date is sysdate.
Thanks,
Sathya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SELECT * FROM <TABLE_NAME> WHERE <DATE_FIELD_NAME> = SYSDATE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
As far as i know for 7.1 versions and below is not possible without stored procedures.
You could make a differente aproximation if avoiding stored procedures is mandatory. Convert the Sender JDBC in Receiver JDBC. You simulate the polling with a job in the ABAP stack which call the service. In other side, i think you need to work with the data selected and send it to another site, ok, you could take this data in the abap stack (response in the job service call) and send it with other PI service interface.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Yup the above SQL statements workes fine unless the parameters are standard one like Date....
If you need custome parameter you need to go for SP.
Regards
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.