<?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: how to load incremental data from oracle database to MSSql database in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299356#M71706</link>
    <description>You can't assign SQL or Java expressions to a context variable, only their result. Anyway, I don't see how you expect Oracle to execute a query on SQL Server in the first place!
&lt;BR /&gt;You need to put "Select max(Date) from MSSql.table" in a tMsSqlInput and pass the result to tJavaRow where you can assign it to your context variable.
&lt;BR /&gt;You also, as tal00000 says, need to separate the context variable from the rest of your Oracle SQL string so its value can be evaluated and appended. But you need to format the date appropriately as well e.g.
&lt;BR /&gt;"Select * from Oracle.Table_Name
&lt;BR /&gt;Where Date &amp;gt; '" + TalendDate.formatDate("dd/MM/yyyy",context.Date) + "'"</description>
    <pubDate>Wed, 28 Aug 2013 00:47:47 GMT</pubDate>
    <dc:creator>alevy</dc:creator>
    <dc:date>2013-08-28T00:47:47Z</dc:date>
    <item>
      <title>how to load incremental data from oracle database to MSSql database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299354#M71704</link>
      <description>I want to load incremental data from oracle database to MSSql database where data has to insert into MSSql database table with date as filter criteria.&lt;BR /&gt;Suppose Oracle Db table contains data till 16 jul 2013 and MSSql table also contains data till same date.Next Day,In oracle db table new records will come of 17 jul 2013,then Newly loaded data will get inserted into MSSql db table(Incremental Basis).&lt;BR /&gt;i.e.  Oracle_Databse.table.Date &amp;gt; (Select max(table.Date) from MSSql_Databse.table)&lt;BR /&gt;I am using tOracleinput as Source where Query would be like &lt;BR /&gt;Select * from Oracle.Table_Name&lt;BR /&gt;Where Date &amp;gt; context.Date&lt;BR /&gt;context.Date="Select max(Date)as Max_Date from MSSql.table"&lt;BR /&gt;It gives me Error ORA-00904 while execution.&lt;BR /&gt;Kindly suggest what to do??</description>
      <pubDate>Sat, 16 Nov 2024 11:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299354#M71704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to load incremental data from oracle database to MSSql database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299355#M71705</link>
      <description>I think your query is more likely to be...
&lt;BR /&gt;"Select * from Oracle.Table_Name
&lt;BR /&gt;Where Date &amp;gt; " + context.Date
&lt;BR /&gt;You may need to wrap your context variable in to_date() depending on its format.
&lt;BR /&gt;I'd strongly recommend reading about change data capture, for example, on Wikipedia first.
&lt;BR /&gt;I'd also suggest naming you columns rather than relying on "*" to retrieve your columns in the expected order.</description>
      <pubDate>Tue, 27 Aug 2013 17:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299355#M71705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T17:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to load incremental data from oracle database to MSSql database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299356#M71706</link>
      <description>You can't assign SQL or Java expressions to a context variable, only their result. Anyway, I don't see how you expect Oracle to execute a query on SQL Server in the first place!
&lt;BR /&gt;You need to put "Select max(Date) from MSSql.table" in a tMsSqlInput and pass the result to tJavaRow where you can assign it to your context variable.
&lt;BR /&gt;You also, as tal00000 says, need to separate the context variable from the rest of your Oracle SQL string so its value can be evaluated and appended. But you need to format the date appropriately as well e.g.
&lt;BR /&gt;"Select * from Oracle.Table_Name
&lt;BR /&gt;Where Date &amp;gt; '" + TalendDate.formatDate("dd/MM/yyyy",context.Date) + "'"</description>
      <pubDate>Wed, 28 Aug 2013 00:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299356#M71706</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-08-28T00:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to load incremental data from oracle database to MSSql database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299357#M71707</link>
      <description>Hey tal00000 and alevy Thanks for the reply...
&lt;BR /&gt;My Job Flow is as follows
&lt;BR /&gt;toracleinput----&amp;gt;tmap-----&amp;gt;tmssqloutput
&lt;BR /&gt;and my oracle query is same as tal00000 interpreted
&lt;BR /&gt;Select * from Oracle.Table_Name
&lt;BR /&gt;Where Date &amp;gt; " + context.Date
&lt;BR /&gt;but context.Date contains a MSSQL Query(Select max(table.Date) from MSSql_Databse.table)
&lt;BR /&gt;but i got the error like "Missing Expression" OR "Context is invalid identifier" when i run the job.
&lt;BR /&gt;Kindly suggest me</description>
      <pubDate>Thu, 29 Aug 2013 06:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299357#M71707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T06:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to load incremental data from oracle database to MSSql database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299358#M71708</link>
      <description>hi,&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Context is invalid identifier&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;are you using Context OR context ? &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;context.Date contains a MSSQL Query(Select max(table.Date) from MSSql_Databse.table&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Don't understand well ! Are you request DB and store result in context variable 'Date' ?&lt;BR /&gt;PS: avoid some 'key word' like Date to name your variable.&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Thu, 29 Aug 2013 07:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299358#M71708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T07:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to load incremental data from oracle database to MSSql database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299359#M71709</link>
      <description>Read what I wrote.  You CANNOT put a SQL statement into a context variable and expect it to be run!</description>
      <pubDate>Thu, 29 Aug 2013 07:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-load-incremental-data-from-oracle-database-to-MSSql/m-p/2299359#M71709</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-08-29T07:52:55Z</dc:date>
    </item>
  </channel>
</rss>

