<?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 code works in SSMS but not in Qlik in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656912#M63563</link>
    <description>&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;thank you for your reply. I don't know what's happening because I can't even rename my columns. When I edit my code to this:&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'RALNHV (nhv_qlikadmin)';&lt;/P&gt;&lt;P&gt;PartInquiries:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;a.[IssueDate]&lt;BR /&gt;,b.[PartNo]&lt;BR /&gt;&lt;STRONG&gt;,b.[Description] as Desc&lt;/STRONG&gt;&lt;BR /&gt;,d.[SerialNo]&lt;BR /&gt;,d.[ReceivedQty]&lt;BR /&gt;,i.[TransactionType]&lt;BR /&gt;,g.[OrderNo]&lt;BR /&gt;,f.[TaskNo]&lt;BR /&gt;,c.[Priority]&lt;BR /&gt;,f.[TaskText]&lt;BR /&gt;,f.[CarriedOutText]&lt;BR /&gt;,f.[Description]&lt;BR /&gt;,f.[EstManHours]&lt;BR /&gt;,g.[PartNo] as AcModel&lt;BR /&gt;,g.[Reg]&lt;BR /&gt;,h.[Status]&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the eroor: Co&lt;EM&gt;nnector reply error: ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Incorrect syntax near the keyword 'Desc'.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 08:48:36 GMT</pubDate>
    <dc:creator>Cathalc</dc:creator>
    <dc:date>2019-12-12T08:48:36Z</dc:date>
    <item>
      <title>SQL code works in SSMS but not in Qlik</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656437#M63561</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;The following code works in SSMS but not in Qlik:&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'RALNHV (nhv_qlikadmin)';&lt;/P&gt;&lt;P&gt;PartInquiries:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;[IssueDate]&lt;BR /&gt;,b.[PartNo]&lt;BR /&gt;,b.[Description]&lt;BR /&gt;,d.[SerialNo]&lt;BR /&gt;,d.[ReceivedQty]&lt;BR /&gt;,i.[TransactionType]&lt;BR /&gt;,g.[OrderNo]&lt;BR /&gt;,f.[TaskNo]&lt;BR /&gt;,c.[Priority]&lt;BR /&gt;,f.[TaskText]&lt;BR /&gt;,f.[CarriedOutText]&lt;BR /&gt;,f.[Description]&lt;BR /&gt;,f.[EstManHours]&lt;BR /&gt;,g.[PartNo] as AcModel&lt;BR /&gt;,g.[Reg]&lt;BR /&gt;,h.[Status]&lt;/P&gt;&lt;P&gt;-- Joining Date, PartNo, Priority and SerialNo:&lt;BR /&gt;FROM [RALNHV].[dbo].[sDemandPart] as a&lt;BR /&gt;LEFT JOIN [RALNHV].[dbo].[sPart] as b&lt;BR /&gt;ON a.[sPart_IDDemanded] = b.[ID]&lt;BR /&gt;lEFT JOIN [RALNHV].[dbo].[sPriority] as c&lt;BR /&gt;ON a.[sPriority_ID] = c.[ID]&lt;BR /&gt;LEFT JOIN [RALNHV].[dbo].[sOrderPartReceipt] as d&lt;BR /&gt;on a.[sOrderPartReceipt_ID] = d.[ID]&lt;/P&gt;&lt;P&gt;-- Joining the task Information:&lt;BR /&gt;LEFT JOIN [RALNHV].[dbo].[sDemand] as e&lt;BR /&gt;on a.[sDemand_ID] = e.[ID]&lt;BR /&gt;LEFT JOIN [RALNHV].[dbo].[sOrderTask] as f&lt;BR /&gt;on e.[sOrderTask_ID] = f.[ID]&lt;/P&gt;&lt;P&gt;--Joining the Order Information&lt;BR /&gt;LEFT JOIN [RALNHV].[dbo].[sOrder] as g&lt;BR /&gt;on f.[sOrder_ID] = g.[ID]&lt;BR /&gt;&lt;BR /&gt;--Joining Status and TransactionType&lt;BR /&gt;LEFT JOIN [RALNHV].[dbo].[sDemandItemStatus] as h&lt;BR /&gt;on a.[sDemandItemStatus_IDLast] = h.[ID]&lt;BR /&gt;LEFT Join [RALNHV].[dbo].[sPartTransactionType] as i&lt;BR /&gt;on a.[sPartTransactionType_ID] = i.[ID]&lt;/P&gt;&lt;P&gt;-- To be checked what kind of WO can be left out of the table!&lt;BR /&gt;Where&lt;BR /&gt;a.IssueDate &amp;gt; Convert(datetime, '2016-01-01')&lt;BR /&gt;order by a.IssueDate&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;&lt;/P&gt;&lt;DIV class="headline edc_error"&gt;&lt;EM&gt;The following error occurred:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;EM&gt;Field names must be unique within table&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;Any ideas? I don't see any actions not supported by Qlik...&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;regards&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656437#M63561</guid>
      <dc:creator>Cathalc</dc:creator>
      <dc:date>2024-11-16T19:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: SQL code works in SSMS but not in Qlik</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656442#M63562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have got both&amp;nbsp;&lt;SPAN&gt;b.[Description] and&amp;nbsp;f.[Description]. Try renaming one of them.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 10:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656442#M63562</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2019-12-11T10:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL code works in SSMS but not in Qlik</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656912#M63563</link>
      <description>&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;thank you for your reply. I don't know what's happening because I can't even rename my columns. When I edit my code to this:&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'RALNHV (nhv_qlikadmin)';&lt;/P&gt;&lt;P&gt;PartInquiries:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;a.[IssueDate]&lt;BR /&gt;,b.[PartNo]&lt;BR /&gt;&lt;STRONG&gt;,b.[Description] as Desc&lt;/STRONG&gt;&lt;BR /&gt;,d.[SerialNo]&lt;BR /&gt;,d.[ReceivedQty]&lt;BR /&gt;,i.[TransactionType]&lt;BR /&gt;,g.[OrderNo]&lt;BR /&gt;,f.[TaskNo]&lt;BR /&gt;,c.[Priority]&lt;BR /&gt;,f.[TaskText]&lt;BR /&gt;,f.[CarriedOutText]&lt;BR /&gt;,f.[Description]&lt;BR /&gt;,f.[EstManHours]&lt;BR /&gt;,g.[PartNo] as AcModel&lt;BR /&gt;,g.[Reg]&lt;BR /&gt;,h.[Status]&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the eroor: Co&lt;EM&gt;nnector reply error: ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Incorrect syntax near the keyword 'Desc'.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 08:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656912#M63563</guid>
      <dc:creator>Cathalc</dc:creator>
      <dc:date>2019-12-12T08:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL code works in SSMS but not in Qlik</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656915#M63564</link>
      <description>&lt;P&gt;I believe Desc (for descending) is a reserved word. Try another name.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 08:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656915#M63564</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2019-12-12T08:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL code works in SSMS but not in Qlik</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656920#M63565</link>
      <description>&lt;P&gt;You would need preceeding load to rename:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PartInquiries:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;load &lt;SPAN&gt;[IssueDate]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,b.[PartNo]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,"b.[Description]" as DescB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,d.[SerialNo]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,d.[ReceivedQty]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,i.[TransactionType]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,g.[OrderNo]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,f.[TaskNo]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,c.[Priority]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,f.[TaskText]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,f.[CarriedOutText]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,"f.[Description]" as DescF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,f.[EstManHours]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,"g.[PartNo]" as AcModel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,g.[Reg]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,h.[Status]&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;SQL SELECT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[IssueDate]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,b.[PartNo]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,b.[Description]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,d.[SerialNo]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,d.[ReceivedQty]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,i.[TransactionType]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,g.[OrderNo]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,f.[TaskNo]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,c.[Priority]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,f.[TaskText]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,f.[CarriedOutText]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,f.[Description]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,f.[EstManHours]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,g.[PartNo]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,g.[Reg]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,h.[Status]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 09:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-code-works-in-SSMS-but-not-in-Qlik/m-p/1656920#M63565</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-12-12T09:04:58Z</dc:date>
    </item>
  </channel>
</rss>

