<?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: tMSSQLRow Error: Incorrect syntax near '@P0' in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLRow-Error-Incorrect-syntax-near-P0/m-p/2282314#M56576</link>
    <description>After several failed attempts, I finally arrived at the following query in the tMssqlInput 
&lt;BR /&gt;"select memberid from list"+((String)globalMap.get("row1.list"))+" where active=1" 
&lt;BR /&gt;And it worked. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 09 Nov 2010 20:02:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-11-09T20:02:07Z</dc:date>
    <item>
      <title>tMSSQLRow Error: Incorrect syntax near '@P0'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLRow-Error-Incorrect-syntax-near-P0/m-p/2282311#M56573</link>
      <description>Hello, 
&lt;BR /&gt;Coming from Ab Initio, I was very glad when I read about tMSSQLRow component where we can create SQL queries on the run with parameters from preceding input. Following is my job. 
&lt;BR /&gt;Input File --&amp;gt; tMSSQLRow --&amp;gt; tParseRecordSet --&amp;gt; Output File 
&lt;BR /&gt;The query in the tMSSQLRow is as follows, 
&lt;BR /&gt;"select memberid from listid? where active=1". 
&lt;BR /&gt;The database contains tables such as, 
&lt;BR /&gt;list123 
&lt;BR /&gt;list3522 
&lt;BR /&gt;list400 
&lt;BR /&gt;The ? parameter picks up numbers from a listid field on the Input file. The job compiled fine but is aborting with the error, 
&lt;BR /&gt; connecting to socket on port 3926 
&lt;BR /&gt; connected 
&lt;BR /&gt;Incorrect syntax near '@P0'.Incorrect syntax near '@P0'.Incorrect syntax near '@P0'.Incorrect syntax near '@P0'.Incorrect syntax near '@P0'.Incorrect syntax near '@P0'.Incorrect syntax near '@P0'.Incorrect syntax near '@P0'.Incorrect syntax near '@P0'.Incorrect syntax near '@P0'. 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Does anyone have any clue on how to resolve this? Much appreciated, thanks for reading.</description>
      <pubDate>Sat, 16 Nov 2024 13:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSQLRow-Error-Incorrect-syntax-near-P0/m-p/2282311#M56573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSQLRow Error: Incorrect syntax near '@P0'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLRow-Error-Incorrect-syntax-near-P0/m-p/2282312#M56574</link>
      <description>Hello 
&lt;BR /&gt;Your job should looks like: 
&lt;BR /&gt;input file--row1---tFlowToIterate--iterate--tMssqlInput---tOutputFile 
&lt;BR /&gt;The query in the tMssqlInput is as follows: 
&lt;BR /&gt;"select memberid from "+row1.tableName+" where active=1" 
&lt;BR /&gt;tableName is one column on the schema of input file. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 08 Oct 2010 15:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSQLRow-Error-Incorrect-syntax-near-P0/m-p/2282312#M56574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-08T15:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSQLRow Error: Incorrect syntax near '@P0'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLRow-Error-Incorrect-syntax-near-P0/m-p/2282313#M56575</link>
      <description>The query in the tMssqlInput is as follows: 
&lt;BR /&gt;"select memberid from "+list.row1+" where active=1" 
&lt;BR /&gt;which I hope will resolve into following queries, 
&lt;BR /&gt;select memberid from list100 where active=1 
&lt;BR /&gt;select memberid from list200 where active=1 
&lt;BR /&gt;select memberid from list300 where active=1 
&lt;BR /&gt;where 100, 200 and 300 are the values in Input File. However, I get an error "list cannot be resolved" and the job is unsuccessful. Any help is appreciated. Thanks for reading again.</description>
      <pubDate>Tue, 09 Nov 2010 18:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSQLRow-Error-Incorrect-syntax-near-P0/m-p/2282313#M56575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-09T18:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSQLRow Error: Incorrect syntax near '@P0'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLRow-Error-Incorrect-syntax-near-P0/m-p/2282314#M56576</link>
      <description>After several failed attempts, I finally arrived at the following query in the tMssqlInput 
&lt;BR /&gt;"select memberid from list"+((String)globalMap.get("row1.list"))+" where active=1" 
&lt;BR /&gt;And it worked. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 09 Nov 2010 20:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSQLRow-Error-Incorrect-syntax-near-P0/m-p/2282314#M56576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-09T20:02:07Z</dc:date>
    </item>
  </channel>
</rss>

