on 10-28-2014 4:02 PM
Hello All,
Have a requirement where we need to query the database for a set of records every hour using date time stamp and pass the records to Java web service.
Sender JDBC - PI - SOAP (EOIO)
Can we do something using sender jdbc adapter where select * from table where Datetime > Parameter
The Parameter will change every hour.
Can this be achieved without a Stored procedure ?
Also if the database server is different for different locations then can it be set at runtime based on input parameters ?
Thanks,
Kiran
Message was edited by: Kiran Sakhardande
What will be the parameter value?
You can use getDate() or currentDate function in your query.to get current date form system
Regards
Osman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Osman !! That's perfect. I actually need to pass previous day with current time . I can use some sql manipulation for it.
Also my database servers are located at different locations. Is there a way to dynamically update the connection string from somewhere for Sender JDBC ? I can have a value mapping but how can I trigger it.
Thanks Osman !! We are planning to create a new communication channel per site to address this issue.
Also is it possible to pass dynamic parameter like ID = 5 in the Query statement when the service is called via the sender comm. channel ?
Can we use a dummy update statement if we don't want to execute anything ?
Thanks,
Kiran
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.