on 05-24-2007 12:25 PM
hi gurus,
i am doing JDBC toFile scenario.
in that is there anyway to give query dynamically.
i mean , i am having a field called orderid, i hava to select a record from the table based on the orderid.
i have given the static query in the adapter configuration and its working.
now i have to give the orderid dynamically. is there any possibility.
help me.
thanks in advance.
Indira D
Hi
You can use place holders
Check the following help doc
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
regards
krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello,
Hope this is useful...
inside the Query SQL Statement you can use SQL EXECUTE
which can execute a stored procedure
in which you can do
SELECT * FROM myTable WHERE myDate = <current_date>
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
And Check this ...
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
With Regards,
Raju.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem wid getdate() is that in the column it'll check for the exact date i.e. time n all
So try usin select * from tableName where datepart(dd,getdate()) = datepart(dd,dateColumn) and datepart(mm,getdate()) = datepart(mm, dateColumn) and datepart(yyyy,getdate()) = datepart(yyyy, dateColum)
Indira,
Can u give an example of how u want the SQL query dynamically...
Best regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can also invoke a stored procedure via the
jdbc sender adapter (in which you can have select based
on date, time or other dynamic values)
Thanks 2 Michal
Regards
krishna
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.