on 11-13-2006 10:23 AM
Hi!
I configure the JDBC adapter sender (XI) to take data from MSSQL database.
I have to run select like this:
SELECT
tblMilestone.Site,
tblMilestone.Revision,
tblMilestone.MilestoneNameID,
tblMilestone.ApprovedDate,
tblMilestoneName.MilestoneName
FROM
tblMilestoneName
INNER JOIN tblMilestone ON tblMilestoneName.MilestoneNameID = tblMilestone.MilestoneNameID
WHERE tblMilestone.StatusCode = 1;
My question is what "Update SQL Statement" I should use in communication channel definition? I only need to update tblMilestone or this two tables?
Maybe you give me some example.
Hi,
As i can see in your case update of tblMilestone should be enough.
Regards,
Wojciech
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"As i can see in your case update of tblMilestone should be enough."
I don't test it yet but maybe something like this will be ok
UPDATE tblMilestone SET <added_updating_kolumn_name>=11
WHERE tblMilestone.StatusCode = 1;
What are you thinking?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this from SAP help...
*******************************
Update SQL Statement
You have the following options:
● Enter a valid SQL statement that is to be applied to the database once the data (determined from the Query SQL Statement) has been successfully sent to the Integration Server/PCK.
It must be an INSERT, UPDATE, or DELETE statement.
● In place of the SQL statement, you can also enter <TEST>. Once the data determined from Query SQL Statement has been successfully sent, the data in the database remains unaltered.
This is recommended if the data has not only been read, but also changed by a stored procedure entered under Query SQL Statement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Grzegorz,
also refer this blog
/people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
Regards,
Deviprasad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
" The Update statement is not mandatory and you can use <test> if you do not want any updations to happen."
So You mean that i don't have to put any Update statement in my situation? For me will be better doing no updates.
I can write <test> and will be working?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
><i>So You mean that i don't have to put any Update statement in my situation? For me will be better doing no updates.
I can write <test> and will be working?</i>
yes, if you use <b><test></b> in update statement , it will work fine. But, your updation of the table will need to be handled else where else you will have multiple messages every polling interval.
Regards,
Bhavesh
Hi,
the update statement allows you to update the selected rows in your DB so that the JDBC adapter does not select the same rows all over again during every polling interval and so as to avoid duplication of messages.
The Update statement is not mandatory and you can use <b><test></b> if you do not want any updations to happen.
The actual query depends on what you want to update in the table after the data has been selected in your sender JDBC adapter.
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
You can use any valid SQL statement which is applied to the data base once Query SQL Statement has been processed succesful.
Check Update SQL statement in this link ...
http://help.sap.com/saphelp_nw2004s/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
Sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.