<?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 semicolon escape in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-semicolon-escape/m-p/797713#M281760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not a query but a procedure. Create a stored procedure in your source database and call the stored procedure from qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2015 08:31:54 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-03-13T08:31:54Z</dc:date>
    <item>
      <title>SQL semicolon escape</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-semicolon-escape/m-p/797712#M281759</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 have an MS SQL query which *must* include a semicolon, however Qlikview is treating this as the end of the SQL script. How can I prevent this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test: &lt;/P&gt;&lt;P&gt;load *;&lt;/P&gt;&lt;P&gt;SQL &lt;/P&gt;&lt;P&gt;declare @i int&lt;/P&gt;&lt;P&gt;declare @hello nvarchar(20)&lt;/P&gt;&lt;P&gt;declare @hello2 nvarchar(20)&lt;/P&gt;&lt;P&gt;declare @code nvarchar(20)&lt;/P&gt;&lt;P&gt;declare @original nvarchar(20)&lt;/P&gt;&lt;P&gt;declare @counter nvarchar(20)&lt;/P&gt;&lt;P&gt;declare @rownum nvarchar(20)&lt;/P&gt;&lt;P&gt;declare @cachecounter nvarchar(20)&lt;/P&gt;&lt;P&gt;declare @iterate nvarchar(20)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set @iterate=1&lt;/P&gt;&lt;P&gt;set @rownum=1&lt;/P&gt;&lt;P&gt;set @counter=1&lt;/P&gt;&lt;P&gt;set @original=5158&lt;/P&gt;&lt;P&gt;set @code=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select @i=2&lt;/P&gt;&lt;P&gt;select @cachecounter=count(1) from ErrorForms.dbo.CacheById w&lt;STRONG style="color: #ff0000;"&gt;here Type=6;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;with ordered&lt;/STRONG&gt; as (select ROW_NUMBER ( )&amp;nbsp; OVER (Order by Code desc ) as rownumber, Code, Id from ErrorForms.dbo.cachebyid where Type=6)&lt;/P&gt;&lt;P&gt;select @hello=Code from ordered where rownumber=9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 07:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-semicolon-escape/m-p/797712#M281759</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2015-03-13T07:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL semicolon escape</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-semicolon-escape/m-p/797713#M281760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not a query but a procedure. Create a stored procedure in your source database and call the stored procedure from qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 08:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-semicolon-escape/m-p/797713#M281760</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-13T08:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL semicolon escape</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-semicolon-escape/m-p/797714#M281761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is not an option, does With require a leading semicolon if it is the first expression in a SQL batch? None of the declares, sets or selects before the With do anythng as far as I can see, so if you remove those, you won't need the semicolon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 08:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-semicolon-escape/m-p/797714#M281761</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-03-13T08:38:45Z</dc:date>
    </item>
  </channel>
</rss>

