<?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: assign tMSSqlRow value to context variable? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/assign-tMSSqlRow-value-to-context-variable/m-p/2319528#M89763</link>
    <description>Can I ask why you are using the tMSSqlRow for this? From what I have seen of your problem, it would be a lot more straight forward to use the tMSSqlInput to read the data and the tMSSqlOutput to write the data.</description>
    <pubDate>Sun, 18 Mar 2018 02:23:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-18T02:23:02Z</dc:date>
    <item>
      <title>assign tMSSqlRow value to context variable?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/assign-tMSSqlRow-value-to-context-variable/m-p/2319526#M89761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to assign&amp;nbsp;tMSSqlRow value to context variable ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my query is written in &lt;SPAN&gt;tMSSqlRow_2&lt;/SPAN&gt;&lt;SPAN&gt;. Need to read the value from tMSSqlRow_2 and assign to context variable. how to achieve&amp;nbsp;this?&amp;nbsp; Please help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query :&lt;/P&gt;&lt;P&gt;"&lt;BR /&gt;begin&lt;BR /&gt;declare&lt;BR /&gt;@srcid int,&lt;BR /&gt;@sessionid int;&lt;/P&gt;&lt;P&gt;select @srcid=srcid from dbo.src_tbl where src_name='xxx';&lt;/P&gt;&lt;P&gt;select sessionid from session_tbl where srcid=@srcid and loaddate='2011-12-20'&lt;BR /&gt;end&lt;BR /&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional info:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;session_tble structure:&lt;/STRONG&gt;&lt;BR /&gt;sessionid int IDENTITY(-3333333,1) not null ,&lt;BR /&gt;srcid int,&lt;BR /&gt;loaddate date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;src_tbl structure:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;src_id int,&lt;BR /&gt;src_name varchar(500)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Context:&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp; Value (default)&lt;/P&gt;&lt;P&gt;SessionID&amp;nbsp; &amp;nbsp; Int&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -9999999&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have&amp;nbsp;followed&amp;nbsp;this :&lt;/P&gt;&lt;P&gt;tMSSqlConnection --&amp;gt;&lt;SPAN&gt;tMSSqlRow_1&amp;nbsp; --OnComponentOK---&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;tMSSqlRow_2&amp;nbsp; ---main---&amp;gt;tJavaRow--&amp;gt;tLogRow&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have written above code in&amp;nbsp;&lt;SPAN&gt;tMSSqlRow_2, in tMSSqlRow_1&amp;nbsp; ("sessionid")&amp;nbsp; is getting populated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When i run job it is writtening null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 13:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/assign-tMSSqlRow-value-to-context-variable/m-p/2319526#M89761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T13:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: assign tMSSqlRow value to context variable?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/assign-tMSSqlRow-value-to-context-variable/m-p/2319527#M89762</link>
      <description>Hi,&lt;BR /&gt;What's in tJavaRow?</description>
      <pubDate>Sat, 17 Mar 2018 21:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/assign-tMSSqlRow-value-to-context-variable/m-p/2319527#M89762</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-17T21:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: assign tMSSqlRow value to context variable?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/assign-tMSSqlRow-value-to-context-variable/m-p/2319528#M89763</link>
      <description>Can I ask why you are using the tMSSqlRow for this? From what I have seen of your problem, it would be a lot more straight forward to use the tMSSqlInput to read the data and the tMSSqlOutput to write the data.</description>
      <pubDate>Sun, 18 Mar 2018 02:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/assign-tMSSqlRow-value-to-context-variable/m-p/2319528#M89763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-18T02:23:02Z</dc:date>
    </item>
  </channel>
</rss>

