<?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 Import from MS SQL Server. Export to CSV. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Import-from-MS-SQL-Server-Export-to-CSV/m-p/2299449#M71792</link>
    <description>Hi all, 
&lt;BR /&gt;I am trying to setup Talend Open Studio for Data integration for the below purpose; 
&lt;BR /&gt;Import data from a MS SQL Server table, and export this data into a .csv file. 
&lt;BR /&gt;I am running: 
&lt;BR /&gt;Windows XP 32bit 
&lt;BR /&gt;MS SQL Server 2005 Express 
&lt;BR /&gt;Talend Open Studio for Data Integration 5.0.1 
&lt;BR /&gt;I have successfully setup a connection to the SQL Server and have created a schema for the table I am trying to retrieve data from however the .csv file I have specified is empty and I am receiving this error: 
&lt;BR /&gt;Exception in component tMSSqlInput_1 
&lt;BR /&gt;java.lang.NullPointerException 
&lt;BR /&gt; at ms_sql_server_etl.data_export_0_1.Data_Export.tMSSqlInput_1Process(Data_Export.java:556) 
&lt;BR /&gt; at ms_sql_server_etl.data_export_0_1.Data_Export.runJobInTOS(Data_Export.java:956) 
&lt;BR /&gt; at ms_sql_server_etl.data_export_0_1.Data_Export.main(Data_Export.java:824) 
&lt;BR /&gt;In my job designer I have: 
&lt;BR /&gt;tMSSqlInput_1 
&lt;BR /&gt;Running the query: 
&lt;BR /&gt;"SELECT dbo.\"Stock Group\".\"ID\", 
&lt;BR /&gt; dbo.\"Stock Group\".Code, 
&lt;BR /&gt; dbo.\"Stock Group\".Description, 
&lt;BR /&gt; dbo.\"Stock Group\".\"tc ho/bo delete flag\", 
&lt;BR /&gt; dbo.\"Stock Group\".deleted 
&lt;BR /&gt;FROM dbo.\"Stock Group\"" 
&lt;BR /&gt;With it set to use an existing connection, the schema set to the repository and the table name set to: "Stock Group" 
&lt;BR /&gt;I have this connected to a tFileOutputMSDelimited_1 
&lt;BR /&gt;Any help would be greatly appreciated! 
&lt;BR /&gt;Sincerely, 
&lt;BR /&gt;Robert</description>
    <pubDate>Sat, 16 Nov 2024 12:25:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:25:16Z</dc:date>
    <item>
      <title>Import from MS SQL Server. Export to CSV.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-from-MS-SQL-Server-Export-to-CSV/m-p/2299449#M71792</link>
      <description>Hi all, 
&lt;BR /&gt;I am trying to setup Talend Open Studio for Data integration for the below purpose; 
&lt;BR /&gt;Import data from a MS SQL Server table, and export this data into a .csv file. 
&lt;BR /&gt;I am running: 
&lt;BR /&gt;Windows XP 32bit 
&lt;BR /&gt;MS SQL Server 2005 Express 
&lt;BR /&gt;Talend Open Studio for Data Integration 5.0.1 
&lt;BR /&gt;I have successfully setup a connection to the SQL Server and have created a schema for the table I am trying to retrieve data from however the .csv file I have specified is empty and I am receiving this error: 
&lt;BR /&gt;Exception in component tMSSqlInput_1 
&lt;BR /&gt;java.lang.NullPointerException 
&lt;BR /&gt; at ms_sql_server_etl.data_export_0_1.Data_Export.tMSSqlInput_1Process(Data_Export.java:556) 
&lt;BR /&gt; at ms_sql_server_etl.data_export_0_1.Data_Export.runJobInTOS(Data_Export.java:956) 
&lt;BR /&gt; at ms_sql_server_etl.data_export_0_1.Data_Export.main(Data_Export.java:824) 
&lt;BR /&gt;In my job designer I have: 
&lt;BR /&gt;tMSSqlInput_1 
&lt;BR /&gt;Running the query: 
&lt;BR /&gt;"SELECT dbo.\"Stock Group\".\"ID\", 
&lt;BR /&gt; dbo.\"Stock Group\".Code, 
&lt;BR /&gt; dbo.\"Stock Group\".Description, 
&lt;BR /&gt; dbo.\"Stock Group\".\"tc ho/bo delete flag\", 
&lt;BR /&gt; dbo.\"Stock Group\".deleted 
&lt;BR /&gt;FROM dbo.\"Stock Group\"" 
&lt;BR /&gt;With it set to use an existing connection, the schema set to the repository and the table name set to: "Stock Group" 
&lt;BR /&gt;I have this connected to a tFileOutputMSDelimited_1 
&lt;BR /&gt;Any help would be greatly appreciated! 
&lt;BR /&gt;Sincerely, 
&lt;BR /&gt;Robert</description>
      <pubDate>Sat, 16 Nov 2024 12:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-from-MS-SQL-Server-Export-to-CSV/m-p/2299449#M71792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Import from MS SQL Server. Export to CSV.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-from-MS-SQL-Server-Export-to-CSV/m-p/2299450#M71793</link>
      <description>Hi Robert
&lt;BR /&gt;Welcome to Talend Community!
&lt;BR /&gt;Here are some advices.
&lt;BR /&gt;No.1 : Use tFileOutputDelimited instead of tFileOutputMSDelimited.
&lt;BR /&gt;No.2 : Use Metadata-&amp;gt;Db Connections to retrieve schema and query, which is more convenient.
&lt;BR /&gt;No.3 : The query above is wrong. There is no need to type \" here.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 30 Jan 2012 06:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-from-MS-SQL-Server-Export-to-CSV/m-p/2299450#M71793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-30T06:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Import from MS SQL Server. Export to CSV.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-from-MS-SQL-Server-Export-to-CSV/m-p/2299451#M71794</link>
      <description>RSoppa,
&lt;BR /&gt;What I usually do when making queries for my input component is create them in SQL server and make sure they are working there.
&lt;BR /&gt;When your just select all columns of a table you can do as pedro suggested by retrieving the query and the schema. In that case you won't even have to modify anything about the query.
&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 30 Jan 2012 15:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-from-MS-SQL-Server-Export-to-CSV/m-p/2299451#M71794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-30T15:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import from MS SQL Server. Export to CSV.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-from-MS-SQL-Server-Export-to-CSV/m-p/2299452#M71795</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;RSoppa,&lt;BR /&gt;What I usually do when making queries for my input component is create them in SQL server and make sure they are working there.&lt;BR /&gt;When your just select all columns of a table you can do as pedro suggested by retrieving the query and the schema. In that case you won't even have to modify anything about the query.&lt;BR /&gt;Regards&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Sorry, I should have mentioned that I was using a simply query to test the functionality of Talend for my purposes. I have a significantly more complex query that I need to execute. 
&lt;BR /&gt;Pedro: What do you mean by using the Metadata &amp;gt; Db Connections? I have retrieved the Schema for the table 'Stock Group' and I'm loading it from the Repository. I have changed to using the tFileOutputDelimited_1 and changed the query to remove the '/' from the query which were inserted when I selected 'Guess Query'. When I remove the '/' I receive even more errors! Changing to the other file output has not removed my original errors either. 
&lt;BR /&gt;I am very new to this program, sorry if what I'm asking is very basic!</description>
      <pubDate>Tue, 31 Jan 2012 00:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-from-MS-SQL-Server-Export-to-CSV/m-p/2299452#M71795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-31T00:16:58Z</dc:date>
    </item>
  </channel>
</rss>

