<?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 Error in Qlik Only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181494#M628221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have that procedure signature? Please post here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2016 16:04:32 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2016-09-12T16:04:32Z</dc:date>
    <item>
      <title>SQL Error in Qlik Only</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181493#M628220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a part of my load script that calls a stored procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Hours:&lt;/P&gt;
&lt;P&gt;SQL&lt;/P&gt;
&lt;P&gt;EXECUTE Finance_Budgeting_2.dbo.spNewFY17Rollup 2, NULL, NULL;&lt;/P&gt;
&lt;P&gt;Store Hours INTO Hours.qvd&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When I reload the script, I get the following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;SQL##f - SqlState: 22005, ErrorCode: 245, ErrorMsg: [Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed when converting the nvarchar value 'Org Level 1 Code' to data type int.&lt;/P&gt;
&lt;P&gt;Hours:&lt;/P&gt;
&lt;P&gt;SQL&lt;/P&gt;
&lt;P&gt;EXECUTE Finance_Budgeting_2.dbo.spNewFY17Rollup 2, NULL, NULL&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, when I execute the stored procedure outside of Qlik, I get no error at all. Has anyone else ran into this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 14:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181493#M628220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T14:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Error in Qlik Only</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181494#M628221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have that procedure signature? Please post here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181494#M628221</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-12T16:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Error in Qlik Only</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181495#M628222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, what do you mean by procedure signature?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181495#M628222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T16:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Error in Qlik Only</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181496#M628223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Procedure &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;spNewFY17Rollup &lt;/SPAN&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @param1 varchar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @param2 int&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181496#M628223</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-12T16:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Error in Qlik Only</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181497#M628224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14736986251214055 jive_text_macro" jivemacro_uid="_14736986251214055" modifiedtitle="true"&gt;
&lt;P&gt;CREATE PROCEDURE [dbo].[spNewFY17Rollup]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; @Type int = 0,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; @Area varchar(50) = NULL,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; @SubRegion varchar(50) = NULL&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If @Type = 2 --Salary - Base, OT, On Call Hour against current employees&lt;/P&gt;
&lt;P&gt;BEGIN&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Select Distinct sh.*, CASE WHEN sh.Base = 0 AND sh.OnCall = 0 AND sh.Overtime = 0 THEN 'No Hours Entered' ELSE 'Hours Entered' END AS [Review Status]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; From vwNewFY17SalaryHoursCurrentPicture sh Inner Join&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vwDistributionList dl ON /*sh.BusUnit = dl.BusUnit AND */ sh.CostCenter = dl.CostCenter&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Where ((@Area IS NULL OR @Area = dl.SDrive_Area )&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AND (@SubRegion IS NULL OR @SubRegion = dl.SDrive_Region))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;END&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the detail in the stored procedure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181497#M628224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Error in Qlik Only</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181498#M628225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to run this and post here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-sql" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;Select&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; sh.*, &lt;/SPAN&gt;&lt;SPAN class="func" style="font-weight: inherit; font-style: inherit; color: #ff1493; font-size: 9pt !important; background-color: inherit;"&gt;CASE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;WHEN&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; sh.Base = 0 &lt;/SPAN&gt;&lt;SPAN class="op" style="font-weight: inherit; font-style: inherit; color: #808080; font-size: 9pt !important; background-color: inherit;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; sh.OnCall = 0 &lt;/SPAN&gt;&lt;SPAN class="op" style="font-weight: inherit; font-style: inherit; color: #808080; font-size: 9pt !important; background-color: inherit;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; sh.Overtime = 0 &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;'No Hours Entered'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;'Hours Entered'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;END&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; [Review Status]&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; vwNewFY17SalaryHoursCurrentPicture sh &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;Inner&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="op" style="font-weight: inherit; font-style: inherit; color: #808080; font-size: 9pt !important; background-color: inherit;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; vwDistributionList dl &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;ON&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;sh.CostCenter = dl.CostCenter&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181498#M628225</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-12T17:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Error in Qlik Only</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181499#M628226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it to work by pasting the code from the stored proc. No idea why, but it now works. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181499#M628226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T17:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Error in Qlik Only</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181500#M628227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You´re welcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-in-Qlik-Only/m-p/1181500#M628227</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-13T18:50:50Z</dc:date>
    </item>
  </channel>
</rss>

