<?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: [resolved] Delete rows from MSSql table based on values in tMap row output? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Delete-rows-from-MSSql-table-based-on-values-in-tMap/m-p/2364955#M128630</link>
    <description>Got it.&lt;BR /&gt;But had to figure out how to reference the global variable in the query string:&lt;BR /&gt;"DELETE FROM Providers&lt;BR /&gt;WHERE  Providers.PrimaryNPI = " + globalVariable</description>
    <pubDate>Fri, 01 Mar 2013 21:57:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-01T21:57:26Z</dc:date>
    <item>
      <title>[resolved] Delete rows from MSSql table based on values in tMap row output?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Delete-rows-from-MSSql-table-based-on-values-in-tMap/m-p/2364953#M128628</link>
      <description>I need to delete rows from an MSSql table where their primary key values match the values in a tMap's row output column of values. 
&lt;BR /&gt;I'm trying a tMSSql Row component, loaded with the schema of the table (Providers). It's input is a row output (NPIsToBeDeleted) of a tMap that has a single column (BadNPIs). 
&lt;BR /&gt;I'm trying this query: 
&lt;BR /&gt;"DELETE FROM Providers 
&lt;BR /&gt;WHERE NPIsToBeDeleted.BadNPIs = Providers.PrimaryNPI" 
&lt;BR /&gt;It compiles OK, but I get a runtime error: 
&lt;BR /&gt;The multi-part identifier "NPIsToBeDeleted.BadNPIs" could not be bound (repeated a lot of times). 
&lt;BR /&gt;What have I got wrong? 
&lt;BR /&gt;Is there a better method? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDnT.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142592iD9D991265DEE1804/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDnT.jpg" alt="0683p000009MDnT.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDyj.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152946i944F389207BA0386/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDyj.jpg" alt="0683p000009MDyj.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 26 Feb 2013 21:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Delete-rows-from-MSSql-table-based-on-values-in-tMap/m-p/2364953#M128628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-26T21:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Delete rows from MSSql table based on values in tMap row output?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Delete-rows-from-MSSql-table-based-on-values-in-tMap/m-p/2364954#M128629</link>
      <description>You got that error because your tmap producing more than one value which is not handle by sql row component. 
&lt;BR /&gt;so do one thing after tmap put --tFlowToIterate-- and after that get global variable form tflowtoiterate "PrimaryNPI" column value to delete the rows..
&lt;BR /&gt;Hope this solve your problem..</description>
      <pubDate>Wed, 27 Feb 2013 08:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Delete-rows-from-MSSql-table-based-on-values-in-tMap/m-p/2364954#M128629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-27T08:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Delete rows from MSSql table based on values in tMap row output?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Delete-rows-from-MSSql-table-based-on-values-in-tMap/m-p/2364955#M128630</link>
      <description>Got it.&lt;BR /&gt;But had to figure out how to reference the global variable in the query string:&lt;BR /&gt;"DELETE FROM Providers&lt;BR /&gt;WHERE  Providers.PrimaryNPI = " + globalVariable</description>
      <pubDate>Fri, 01 Mar 2013 21:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Delete-rows-from-MSSql-table-based-on-values-in-tMap/m-p/2364955#M128630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-01T21:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Delete rows from MSSql table based on values in tMap row output?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Delete-rows-from-MSSql-table-based-on-values-in-tMap/m-p/2364956#M128631</link>
      <description>Why are you not just using tMSSqlOutput to delete the records?</description>
      <pubDate>Mon, 08 Apr 2013 00:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Delete-rows-from-MSSql-table-based-on-values-in-tMap/m-p/2364956#M128631</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-04-08T00:09:19Z</dc:date>
    </item>
  </channel>
</rss>

