<?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: EXECUTE IMMEDIATE vs EXECUTE in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/execute-immediate-vs-execute/qaa-p/13832700#M4863543</link>
    <description>&lt;P&gt;The basic difference between the two is that &lt;A href="http://dcx.sybase.com/index.html#sa160/en/dbreference/execute-immediate-statement.html*d5e54601"&gt;EXECUTE IMMEDIATE&lt;/A&gt; is WATCOM SQL and &lt;A href="http://dcx.sybase.com/index.html#sa160/en/dbreference/execute-tsql-statement.html*d5e54900"&gt;EXECUTE&lt;/A&gt; is TSQL.  Both statements will parse a string and execute the statement(s) contained within.  Each statement has different options - see the documentation for details - but other than that they are the same.  Which one you use is likely more dependent on whether you are writing your procedural code using WATCOM SQL dialect or TSQL dialect.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2014 15:55:31 GMT</pubDate>
    <dc:creator>MarkCulp</dc:creator>
    <dc:date>2014-01-15T15:55:31Z</dc:date>
    <item>
      <title>EXECUTE IMMEDIATE vs EXECUTE</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-immediate-vs-execute/qaq-p/13832699</link>
      <description>&lt;P&gt;What are the main differences between &lt;CODE&gt;EXECUTE&lt;/CODE&gt; and &lt;CODE&gt;EXECUTE IMMEDITATE&lt;/CODE&gt; statements?&lt;/P&gt;
&lt;P&gt;For example with this dynamic SQL:&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;EXECUTE&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'SELECT * FROM '&lt;/SPAN&gt; &lt;SPAN class="o"&gt;||&lt;/SPAN&gt; &lt;SPAN class="n"&gt;sometable&lt;/SPAN&gt; &lt;SPAN class="o"&gt;||&lt;/SPAN&gt;&lt;SPAN class="s"&gt;' ORDER BY somecol'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;

&lt;SPAN class="n"&gt;EXECUTE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;IMMEDITATE&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'SELECT * FROM '&lt;/SPAN&gt; &lt;SPAN class="o"&gt;||&lt;/SPAN&gt; &lt;SPAN class="n"&gt;sometable&lt;/SPAN&gt; &lt;SPAN class="o"&gt;||&lt;/SPAN&gt;&lt;SPAN class="s"&gt;' ORDER BY somecol'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-immediate-vs-execute/qaq-p/13832699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-15T15:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE IMMEDIATE vs EXECUTE</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-immediate-vs-execute/qaa-p/13832700#M4863543</link>
      <description>&lt;P&gt;The basic difference between the two is that &lt;A href="http://dcx.sybase.com/index.html#sa160/en/dbreference/execute-immediate-statement.html*d5e54601"&gt;EXECUTE IMMEDIATE&lt;/A&gt; is WATCOM SQL and &lt;A href="http://dcx.sybase.com/index.html#sa160/en/dbreference/execute-tsql-statement.html*d5e54900"&gt;EXECUTE&lt;/A&gt; is TSQL.  Both statements will parse a string and execute the statement(s) contained within.  Each statement has different options - see the documentation for details - but other than that they are the same.  Which one you use is likely more dependent on whether you are writing your procedural code using WATCOM SQL dialect or TSQL dialect.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-immediate-vs-execute/qaa-p/13832700#M4863543</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2014-01-15T15:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE IMMEDIATE vs EXECUTE</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-immediate-vs-execute/qaa-p/13832701#M4863544</link>
      <description>&lt;P&gt;To help with understanding syntax that is Watcom vs TSQL, the documentation provides statement applicability indicators to identify where a statement can be used. See the following for additional information:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://dcx.sybase.com/index.html#sa160/en/dbreference/statement-applicabilityusing-wsqlstmt.html"&gt;http://dcx.sybase.com/index.html#sa160/en/dbreference/statement-applicabilityusing-wsqlstmt.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-immediate-vs-execute/qaa-p/13832701#M4863544</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2014-01-15T16:10:16Z</dc:date>
    </item>
  </channel>
</rss>

