<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Incorrect sequence records reading from database in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849102#M3534771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there might be problem with you select command also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put&amp;nbsp; some orderby clause some thing.. or check another parameter with where clause&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 12:51:43 GMT</pubDate>
    <dc:creator>gagandeep_batra</dc:creator>
    <dc:date>2013-11-12T12:51:43Z</dc:date>
    <item>
      <title>Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaq-p/9849098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario: JDBC to IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my production database system the records are getting inserted into the table when ever employee swipes his card,&lt;/P&gt;&lt;P&gt;the data will come as a new entry into table which is present in Production database TABLE_ATTENDANCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configured JDBC adapter at sender side with following QUERY Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query SQL Statement: SELECT TOP 2 * from TABLE_ATTENDANCE WHERE FLAG = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update SQL Statement: UPDATE TOP (2) TABLE_ATTENDANCE SET FLAG = 1 WHERE FLAG = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing issues here as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 FirstRecord&lt;/P&gt;&lt;P&gt;2 SecondRecord&lt;/P&gt;&lt;P&gt;3 ThirdRecord&lt;/P&gt;&lt;P&gt;4 FourthRecord&lt;/P&gt;&lt;P&gt;5 FifthRecord&lt;/P&gt;&lt;P&gt;6 SixthRecord&lt;/P&gt;&lt;P&gt;7 SeventhRecord&lt;/P&gt;&lt;P&gt;8 EightRecord&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intitally My jdbc adapter is polling the table in the database and picks first 2 records 1 &amp;amp;2 then meanwhile few records are getting inserted and while fetching for the next poll interval it fetches 6&amp;amp;7 records, but where as it should fetch 3 &amp;amp; 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read the records as if the same sequence in my database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting your inputs on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaq-p/9849098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-12T12:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849099#M3534768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; under "advanced" tab the parameter "Transaction Isolation level" to serializable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849099#M3534768</guid>
      <dc:creator>gagandeep_batra</dc:creator>
      <dc:date>2013-11-12T12:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849100#M3534769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;Go ahead with &lt;SPAN class="j-post-author "&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://answers.sap.com/people/gagandeep.batra" id="jive-4029247166868876016160"&gt;Gagandeep Batra&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;'s advice, a little tip:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check &lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://answers.sap.com/people/dheeraj.kumar5" id="jive-2015737166713387893160"&gt;Dheeraj Kumar&lt;/A&gt;&lt;/SPAN&gt;'s blog &lt;A _jive_internal="true" href="https://answers.sap.com/people/dheeraj.kumar5/blog/2010/04/12/pixi-sender-jdbc-select-query-and-update-query-to-limit-our-records-to-be-picked-up-by-xi-from-database-to-avoid-huge-message-processing-failed" title="http://scn.sap.com/people/dheeraj.kumar5/blog/2010/04/12/pixi-sender-jdbc-select-query-and-update-query-to-limit-our-records-to-be-picked-up-by-xi-from-database-to-avoid-huge-message-processing-failed"&gt;http://scn.sap.com/people/dheeraj.kumar5/blog/2010/04/12/pixi-sender-jdbc-select-query-and-update-query-to-limit-our-records-to-be-picked-up-by-xi-from-database-to-avoid-huge-message-processing-failed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Iñaki Vila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849100#M3534769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-12T12:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849101#M3534770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that option, but no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849101#M3534770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-12T12:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849102#M3534771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there might be problem with you select command also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put&amp;nbsp; some orderby clause some thing.. or check another parameter with where clause&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849102#M3534771</guid>
      <dc:creator>gagandeep_batra</dc:creator>
      <dc:date>2013-11-12T12:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849103#M3534772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change your query as below and test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query SQL Statement: SELECT&amp;nbsp; * from TABLE_ATTENDANCE WHERE FLAG = 0 and ROWNUM &amp;lt; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update SQL Statement: UPDATE TABLE_ATTENDANCE SET FLAG = 1 WHERE FLAG = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve your problem. Let me know if there are any issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849103#M3534772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-12T12:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849104#M3534773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the above suggested update statment needs to be corrected as it'll update all the records (not just the first two. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1925/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE TABLE_ATTENDANCE SET FLAG = 1 WHERE FLAG = 0 and ROWNUM &amp;lt; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it would be good if you can add some order by clause to your query incase you have any fields like "swipe in"/"emp ID" in your table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 13:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849104#M3534773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-12T13:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849105#M3534774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check my response in thread below:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/thread/3381809" title="http://scn.sap.com/thread/3381809"&gt;http://scn.sap.com/thread/3381809&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ambrish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 15:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849105#M3534774</guid>
      <dc:creator>ambrish_mishra</dc:creator>
      <dc:date>2013-11-12T15:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849106#M3534775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change your query as below and test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query SQL Statement: SELECT&amp;nbsp; * from TABLE_ATTENDANCE WHERE FLAG = 0 and ROWNUM &amp;lt; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update SQL Statement: UPDATE TABLE_ATTENDANCE SET FLAG = 1 WHERE FLAG = 0 and ROWNUM &amp;lt; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve your problem. Let me know if there are any issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 05:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849106#M3534775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-13T05:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849107#M3534776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unable to resolve the issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i have some valuable inputs please.&lt;/P&gt;&lt;P&gt;Still i am missing few records&lt;/P&gt;&lt;P&gt;How ROWNUM is useful here? can you elaborate on this please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 10:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849107#M3534776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T10:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849108#M3534777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did u give a try with the query I have mentioned previously??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROWNUM is the uniq number of every row in the data base. So when you run this query &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT&amp;nbsp; * from TABLE_ATTENDANCE WHERE FLAG = 0 and ROWNUM &amp;lt; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get the first two row with sequence 1 and 2 from list of rows where the flag is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next use the below query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE TABLE_ATTENDANCE SET FLAG = 1 WHERE FLAG = 0 and ROWNUM &amp;lt; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it will set the flag 1 for the last two records that is fetched in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give it a try before you search for other valuable inputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 10:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849108#M3534777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T10:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849109#M3534778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ambrish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still I am facing the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: I am reading one set of data and updating another set of data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Query SQL Statement: SELECT TOP 10 * from TABLE_ATTENDANCE WHERE FLAG = 0&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Update SQL Statement: UPDATE TOP (10) TABLE_ATTENDANCE SET FLAG = 1 WHERE FLAG = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In database while reading records using select I have 3 records but during update another 3 records were inserted at realtime for update it fetches 6 and updating its flag. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I want to know is there any way to lock the number of records which is selected in SELECT query for UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your inputs are well required here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 11:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849109#M3534778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T11:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849110#M3534779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Indrajit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue here is during select there is only 1 record in the database so the rownum&amp;lt;3 will satisfy and fetch only one record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;during update if anther record is inserted then rownum&amp;lt;3 will satisfy and updates both records so this is failing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the time differienct it takes to execute SELECT &amp;amp; UPDATE query in JDBC adapter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 11:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849110#M3534779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849111#M3534780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this two things and give a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. set &lt;SPAN class="Object"&gt;&lt;SPAN lang="DE"&gt;Transaction Isolation Level&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="DE"&gt; &lt;/SPAN&gt;to &lt;SPAN class="UserInputChar"&gt;repeatable_read.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserInputChar"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserInputChar"&gt;2. disconnect from data base after processing each message&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserInputChar"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserInputChar"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/324675" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 12:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849111#M3534780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T12:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849112#M3534781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you refer to the thread I forwarded to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that does not help, then I can share a Stored procedure way which does what you are mentioning. Locking the number of records selected. Are you open to a S P solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ambrish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 12:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849112#M3534781</guid>
      <dc:creator>ambrish_mishra</dc:creator>
      <dc:date>2013-11-15T12:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849113#M3534782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ambrish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I am open to Stored Procedures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ultimate goal is to fix this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to know is there any dependencies in using Stored Procedures like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do I need to install any patch or update with in PI server?&lt;/P&gt;&lt;P&gt;2. Where do I need to put my stored procedure code, by default I will be developing in my source database and will check with its running.&lt;/P&gt;&lt;P&gt;3. I see CALL &amp;lt;StoredProcedure&amp;gt; as syntax while executing in SQL, but is the same statement do I need to define in QUREY SQL of jdbc adapter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your valuable inputs here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 04:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849113#M3534782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-18T04:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849114#M3534783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you refer to the thread I forwarded to you.&lt;/P&gt;&lt;P&gt;Does it work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My response to your questions:&lt;/P&gt;&lt;P&gt;1. Do I need to install any patch or update with in PI server?&lt;/P&gt;&lt;P&gt;No&lt;/P&gt;&lt;P&gt;2. Where do I need to put my stored procedure code, by default I will be developing in my source database and will check with its running.&lt;/P&gt;&lt;P&gt;The stored procedure will reside in the database and will be executed in DB when invoked from PI.&lt;/P&gt;&lt;P&gt;3. I see CALL &amp;lt;StoredProcedure&amp;gt; as syntax while executing in SQL, but is the same statement do I need to define in QUREY SQL of jdbc adapter.&lt;/P&gt;&lt;P&gt;You will just call stored procedure from PI adapter and that's it. It will return the number of rows the same way like a select. I will check the stored procedure if it is suitable to your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ambrish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 06:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849114#M3534783</guid>
      <dc:creator>ambrish_mishra</dc:creator>
      <dc:date>2013-11-18T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849115#M3534784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambrish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my stored procedure in my hand right now,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this in my SQL server its working fine as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But while calling from PI its throwing error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUERY SQL Statement: CALL SP_UPDATEFLAG;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here SP_UPDATEFLAG is my stored procedure name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how to call stored procedure in my JDBC Adapter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 12:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849115#M3534784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-18T12:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849116#M3534785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL server, the syntax is EXECUTE dbo.&amp;lt;S P NAME&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ambrish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849116#M3534785</guid>
      <dc:creator>ambrish_mishra</dc:creator>
      <dc:date>2013-11-18T13:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect sequence records reading from database</title>
      <link>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849117#M3534786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambrish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to trouble you on this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Source Database is SQL Server 2008,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try to give my stored procedure as EXECUTE dbo.SP_UPDATEFLAG;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its throwing error in communicatio channel as invalid execute command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you throw some light on how to call this stored procedure.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 08:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/incorrect-sequence-records-reading-from-database/qaa-p/9849117#M3534786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T08:05:04Z</dc:date>
    </item>
  </channel>
</rss>

