<?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] tMSSqlRow does not work correctly in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339391#M107533</link>
    <description>Thanks for your reply.
&lt;BR /&gt;I build the statement in aqua data studio and it worked there. (This is similar to Squirrel)
&lt;BR /&gt;Here is my SQL:
&lt;BR /&gt;select distinct
&lt;BR /&gt;substring(cast(a.object_id as char(36)),1,8)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),15,4)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),10,4)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),27,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),25,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),22,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),20,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),35,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),33,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),31,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),29,2) OBJECTID,
&lt;BR /&gt;a.object_id SQLObjectID
&lt;BR /&gt;,a.object_name FirstLineObject
&lt;BR /&gt;,a.object_type
&lt;BR /&gt;,case when a.object_type=4 then 'Metric' when a.object_type=12 then 'Attribute' else 'Unknown' end OBJECTTYPE
&lt;BR /&gt;,b.locale M_Locale1,b.property M_Property1,b.translation MetricNameEN,d.translation MetricNameRU
&lt;BR /&gt;,c.locale M_Locale2,c.property M_Property2,c.translation MetricDescEN,e.translation MetricDescRU
&lt;BR /&gt;,
&lt;BR /&gt;substring(cast(g.object_id as char(36)),1,8)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),15,4)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),10,4)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),27,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),25,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),22,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),20,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),35,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),33,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),31,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),29,2) ReportID
&lt;BR /&gt;,g.object_id ReportObjectID
&lt;BR /&gt;,g.locale R_Local1,g.translation ReportNameEN
&lt;BR /&gt;,h.locale R_Locale2,h.translation ReportNameRU
&lt;BR /&gt;,i.translation ReportDescEN
&lt;BR /&gt;,j.translation ReportDescRU
&lt;BR /&gt;from dssmdobjinfo a left outer join dssmdobjtrns b on 
&lt;BR /&gt;(a.project_id=b.project_id and a.object_id=b.object_id and b.locale=1033 and b.property=1)
&lt;BR /&gt;left outer join dssmdobjtrns c on 
&lt;BR /&gt;(a.project_id=c.project_id and a.object_id=c.object_id and c.locale=1049 and c.property=1)
&lt;BR /&gt;left outer join dssmdobjtrns d on
&lt;BR /&gt;(a.project_id=d.project_id and a.object_id=d.object_id and d.locale=1033 and d.property=3)
&lt;BR /&gt;left outer join dssmdobjtrns e on 
&lt;BR /&gt;(a.project_id=e.project_id and a.object_id=e.object_id and e.locale=1049 and e.property=3)
&lt;BR /&gt;left outer join dssmdobjdepn f on
&lt;BR /&gt;(a.object_id=depn_objid and a.project_id=f.depn_prjid and f.object_type=3)
&lt;BR /&gt;left join dssmdobjtrns g on 
&lt;BR /&gt;(f.project_id=g.project_id and f.object_id=g.object_id and g.locale=1033 and g.property=1)
&lt;BR /&gt;left join dssmdobjtrns h on 
&lt;BR /&gt;(f.project_id=h.project_id and f.object_id=h.object_id and h.locale=1049 and h.property=1)
&lt;BR /&gt;left join dssmdobjtrns i on 
&lt;BR /&gt;(f.project_id=i.project_id and f.object_id=i.object_id and i.locale=1033 and i.property=3)
&lt;BR /&gt;left join dssmdobjtrns j on 
&lt;BR /&gt;(f.project_id=j.project_id and f.object_id=j.object_id and j.locale=1049 and j.property=3)
&lt;BR /&gt;where 
&lt;BR /&gt;a.object_type in (4,12)
&lt;BR /&gt;and a.project_id='63BD4218-AD75-41E1-87E4-7795366210DE'
&lt;BR /&gt;order by a.object_type;
&lt;BR /&gt;
&lt;BR /&gt;Thank you for helping.</description>
    <pubDate>Thu, 25 Jul 2013 07:25:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-25T07:25:42Z</dc:date>
    <item>
      <title>[resolved] tMSSqlRow does not work correctly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339389#M107531</link>
      <description>Hello, 
&lt;BR /&gt;referring to the ticket with the topic "tMSSQLRow with tsql-Statement using Linked Server" I have the same issue. 
&lt;BR /&gt;I use talend 5.3.1 and want to use "tMSSqlRow" to create a custom SQL. But i end up in only one empty result. 
&lt;BR /&gt;In the same way I do it against a Postgres database with "tPostgressqlRow" and this works fine. 
&lt;BR /&gt;Is this a bug and is there a workaround to get the Result from the SQL? 
&lt;BR /&gt;I've tried to use a "tMSSQLInput" and as long as I do the query against one table it works but if I use a custom query with few different tables joined I get the following exception: 
&lt;BR /&gt;" 
&lt;BR /&gt;Exception in component tMSSqlInput_3 
&lt;BR /&gt;java.sql.SQLException: The executeQuery method must return a result set. 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:488) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsStatement.executeQuery(JtdsStatement.java:1304) 
&lt;BR /&gt; ....... 
&lt;BR /&gt;" 
&lt;BR /&gt;Hope anybody can help me out. 
&lt;BR /&gt;Thanks, Peter</description>
      <pubDate>Wed, 24 Jul 2013 13:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339389#M107531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-24T13:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMSSqlRow does not work correctly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339390#M107532</link>
      <description>The problem is - I am pretty sure - your statement. Your are trying to get an resultset in the advanced settings. The database does not produce a result set as response to your statement. It would be great to see your statement.&lt;BR /&gt;To develop the correct statement I suggest using a JDBC based database client like SQuirrel:&lt;BR /&gt;&lt;A href="http://squirrel-sql.sourceforge.net/" rel="nofollow noopener noreferrer"&gt;http://squirrel-sql.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;If you can run your statement here and get a result set, you get it.</description>
      <pubDate>Wed, 24 Jul 2013 19:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339390#M107532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-24T19:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMSSqlRow does not work correctly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339391#M107533</link>
      <description>Thanks for your reply.
&lt;BR /&gt;I build the statement in aqua data studio and it worked there. (This is similar to Squirrel)
&lt;BR /&gt;Here is my SQL:
&lt;BR /&gt;select distinct
&lt;BR /&gt;substring(cast(a.object_id as char(36)),1,8)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),15,4)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),10,4)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),27,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),25,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),22,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),20,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),35,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),33,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),31,2)+
&lt;BR /&gt;SUBSTRING(cast(a.object_id as char(36)),29,2) OBJECTID,
&lt;BR /&gt;a.object_id SQLObjectID
&lt;BR /&gt;,a.object_name FirstLineObject
&lt;BR /&gt;,a.object_type
&lt;BR /&gt;,case when a.object_type=4 then 'Metric' when a.object_type=12 then 'Attribute' else 'Unknown' end OBJECTTYPE
&lt;BR /&gt;,b.locale M_Locale1,b.property M_Property1,b.translation MetricNameEN,d.translation MetricNameRU
&lt;BR /&gt;,c.locale M_Locale2,c.property M_Property2,c.translation MetricDescEN,e.translation MetricDescRU
&lt;BR /&gt;,
&lt;BR /&gt;substring(cast(g.object_id as char(36)),1,8)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),15,4)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),10,4)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),27,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),25,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),22,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),20,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),35,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),33,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),31,2)+
&lt;BR /&gt;SUBSTRING(cast(g.object_id as char(36)),29,2) ReportID
&lt;BR /&gt;,g.object_id ReportObjectID
&lt;BR /&gt;,g.locale R_Local1,g.translation ReportNameEN
&lt;BR /&gt;,h.locale R_Locale2,h.translation ReportNameRU
&lt;BR /&gt;,i.translation ReportDescEN
&lt;BR /&gt;,j.translation ReportDescRU
&lt;BR /&gt;from dssmdobjinfo a left outer join dssmdobjtrns b on 
&lt;BR /&gt;(a.project_id=b.project_id and a.object_id=b.object_id and b.locale=1033 and b.property=1)
&lt;BR /&gt;left outer join dssmdobjtrns c on 
&lt;BR /&gt;(a.project_id=c.project_id and a.object_id=c.object_id and c.locale=1049 and c.property=1)
&lt;BR /&gt;left outer join dssmdobjtrns d on
&lt;BR /&gt;(a.project_id=d.project_id and a.object_id=d.object_id and d.locale=1033 and d.property=3)
&lt;BR /&gt;left outer join dssmdobjtrns e on 
&lt;BR /&gt;(a.project_id=e.project_id and a.object_id=e.object_id and e.locale=1049 and e.property=3)
&lt;BR /&gt;left outer join dssmdobjdepn f on
&lt;BR /&gt;(a.object_id=depn_objid and a.project_id=f.depn_prjid and f.object_type=3)
&lt;BR /&gt;left join dssmdobjtrns g on 
&lt;BR /&gt;(f.project_id=g.project_id and f.object_id=g.object_id and g.locale=1033 and g.property=1)
&lt;BR /&gt;left join dssmdobjtrns h on 
&lt;BR /&gt;(f.project_id=h.project_id and f.object_id=h.object_id and h.locale=1049 and h.property=1)
&lt;BR /&gt;left join dssmdobjtrns i on 
&lt;BR /&gt;(f.project_id=i.project_id and f.object_id=i.object_id and i.locale=1033 and i.property=3)
&lt;BR /&gt;left join dssmdobjtrns j on 
&lt;BR /&gt;(f.project_id=j.project_id and f.object_id=j.object_id and j.locale=1049 and j.property=3)
&lt;BR /&gt;where 
&lt;BR /&gt;a.object_type in (4,12)
&lt;BR /&gt;and a.project_id='63BD4218-AD75-41E1-87E4-7795366210DE'
&lt;BR /&gt;order by a.object_type;
&lt;BR /&gt;
&lt;BR /&gt;Thank you for helping.</description>
      <pubDate>Thu, 25 Jul 2013 07:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339391#M107533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-25T07:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMSSqlRow does not work correctly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339392#M107534</link>
      <description>Hi again, 
&lt;BR /&gt;I simplified my problem down to a simple select to one column of one table and the problem is still the same. I get only one emty result row instead of few thousands I get in Aqua Data Studio. 
&lt;BR /&gt;I added a screenshot of my simple job. 
&lt;BR /&gt;Thank you for helping. 
&lt;BR /&gt;Peter 
&lt;BR /&gt;http://www.talendforge.org/forum/img/members/14182/mini_113926_Schema_of</description>
      <pubDate>Thu, 25 Jul 2013 07:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339392#M107534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-25T07:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMSSqlRow does not work correctly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339393#M107535</link>
      <description>&lt;P&gt;Hi Peter&lt;BR /&gt;tXXXRow component is usually used to any type of sql statement excepts select statement, we use txxxInput component to execute a select statement, if you use use tXXXRow to execute a select statement, it returns a record set, and you are required to use a tParseRecordSet component after tXXXRow to parse the record sets. You can find a demo job in this &lt;A title="https://help.talend.com/reader/aMa3LeRerDnYLmJvEPq0bw/D5~~RaRP9UIN4lHOHOce9g" href="https://help.talend.com/reader/aMa3LeRerDnYLmJvEPq0bw/D5~~RaRP9UIN4lHOHOce9g" target="_self" rel="nofollow noopener noreferrer"&gt;page.&lt;/A&gt;&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2013 08:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339393#M107535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-25T08:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMSSqlRow does not work correctly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339394#M107536</link>
      <description>Hi Shong, 
&lt;BR /&gt;thanks for your help. 
&lt;BR /&gt;Solved it with a txxxInput. 
&lt;BR /&gt;Peter</description>
      <pubDate>Sun, 11 Aug 2013 17:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339394#M107536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-11T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMSSqlRow does not work correctly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339395#M107537</link>
      <description>Hello Shong,
&lt;BR /&gt;You have guided very nicely.
&lt;BR /&gt;Thank you</description>
      <pubDate>Mon, 12 Aug 2013 10:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlRow-does-not-work-correctly/m-p/2339395#M107537</guid>
      <dc:creator>RDX</dc:creator>
      <dc:date>2013-08-12T10:40:40Z</dc:date>
    </item>
  </channel>
</rss>

