<?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>topic Re: Sql Trace in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1276281#M151624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Those values are estimated from the SQL optimizer (based on DB statistics).&lt;/P&gt;&lt;P&gt;The real execution time is the field "Duration" in the main list.&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2006 15:22:17 GMT</pubDate>
    <dc:creator>manuel_bassani</dc:creator>
    <dc:date>2006-03-22T15:22:17Z</dc:date>
    <item>
      <title>Sql Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1276278#M151621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to analyze the performance the of sql statement in se38 program. I placed the breakpoint at the select statement. then in another  session I activated the trace in st05. After the select statementis executed I deactivated the trace and clicked on analyze trace. I can see list of statements but I do not understand how to find out the runtime of this statement and how expensive it is.&lt;/P&gt;&lt;P&gt;I know how to do it with se30 and tips and tricks. I just wan to know how to do with st05.&lt;/P&gt;&lt;P&gt;I am forwarding the code too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSELECTDEMO.&lt;/P&gt;&lt;P&gt;tables sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab like sflight occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from sflight .&lt;/P&gt;&lt;P&gt;itab-carrid = sflight-carrid.&lt;/P&gt;&lt;P&gt;itab-connid = sflight-connid.&lt;/P&gt;&lt;P&gt;itab-fldate = sflight-fldate.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-carrid,itab-connid,itab-fldate.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1276278#M151621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T14:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sql Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1276279#M151622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi varun,&lt;/P&gt;&lt;P&gt;  in the list of statements, position the cursor on a SELECT  statement (those are native SQL statement!) and click the button Explain. you will see the extimated cost of the statement and the extimated rows extracted.&lt;/P&gt;&lt;P&gt;I think ST05 is very useful if you want yo check which index is used for a given sql statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to run transaction ST03N. There are runtime and DB statistics for every sql statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 15:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1276279#M151622</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2006-03-22T15:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sql Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1276280#M151623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the same way you have explained me, I got the result as estimated cost = 1, Estimated # Rows = 81. But what information can I infer from this ? How do I know wether this select statement is epensive or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 15:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1276280#M151623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T15:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sql Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1276281#M151624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Those values are estimated from the SQL optimizer (based on DB statistics).&lt;/P&gt;&lt;P&gt;The real execution time is the field "Duration" in the main list.&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 15:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1276281#M151624</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2006-03-22T15:22:17Z</dc:date>
    </item>
  </channel>
</rss>

