<?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 Create MS SQL Server Table With PK and Insert into it in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371725#M134630</link>
    <description>Thanks Shong, I was able to use a tMSSqlRow component to run a SQL command to create the table at the beginning of my script.</description>
    <pubDate>Wed, 05 May 2010 13:56:12 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2010-05-05T13:56:12Z</dc:date>
    <item>
      <title>How to Create MS SQL Server Table With PK and Insert into it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371721#M134626</link>
      <description>I cannot get this to work no matter what I try. &lt;BR /&gt;I want a tMSSqlOutput component to "Create table if not exists" (because the table will not initially exist).   The tMap feeding into the tMSSqlOutput has all of the columns I want to go into the DB with the exception of an "id" column which is to serve as an auto-increment PK.  I don't know how to get the "id" column in there.  I have tried everything.  This is a really simple concept, but I find this impossible to do in talend.</description>
      <pubDate>Sat, 16 Nov 2024 13:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371721#M134626</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create MS SQL Server Table With PK and Insert into it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371722#M134627</link>
      <description>If I try adding an "id" to the schema coming out of my tMap and to the tMSSqlOutput schema, I get hit with a 
&lt;BR /&gt;"Identity column 'id' contains invalid INCREMENT." error. There's no where to specify an increment value in the schema editor!!! I can say the column is the key, I can say the DB type is INT IDENTITY, I can say the column is non-nullable, I can specifiy a length, precision, default, or comment...but no INCREMENT.
&lt;BR /&gt;So then, if I go into my tMSSqlOutput component and check the "Specify identity field", logically I think that maybe if I specify the "Step" to be 1, that'll set the INCREMENT. Sounds like that should do the trick right? WRONG. I get another error. This time a "More than one column IDENTITY constraint specified for column 'id'". I never specified multiple identity columns. In the schema I said I wanted the "id" column to be my PK and an INT IDENTITY type. In the tMSSqlComponent I checked "Specify identity field", chose my "identity field" to be my "id" column, and set the step to 1. Where am I supposedly choosing more than one IDENTITY column?</description>
      <pubDate>Tue, 04 May 2010 20:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371722#M134627</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-05-04T20:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create MS SQL Server Table With PK and Insert into it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371723#M134628</link>
      <description>Here's another funky thing I noticed.  If in the schema editor, for my id column, I set DB Type = INT IDENTITY, nothing for Length, 10 for Precision.  I went to look in SQL server at the table that Talend created, and that "10" for precision ended up being the Identity Seed for the "id" column in my table in SQL Server.  Something is clearly not mapped right.</description>
      <pubDate>Tue, 04 May 2010 20:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371723#M134628</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-05-04T20:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create MS SQL Server Table With PK and Insert into it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371724#M134629</link>
      <description>Hello 
&lt;BR /&gt;Yes, it is impossible to create a table with auto-increment filed on tMysqlOutput component. At the moment, you can use tMysqlTableList to iterate each table and detect the table if exists, if not, use a tMysqlRow to custom the 'create table' sql. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 05 May 2010 03:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371724#M134629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-05T03:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create MS SQL Server Table With PK and Insert into it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371725#M134630</link>
      <description>Thanks Shong, I was able to use a tMSSqlRow component to run a SQL command to create the table at the beginning of my script.</description>
      <pubDate>Wed, 05 May 2010 13:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371725#M134630</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-05-05T13:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create MS SQL Server Table With PK and Insert into it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371726#M134631</link>
      <description>It is to late to reply, but it may be useful to somebody. 
&lt;BR /&gt;It can be done with any MSSQL component, Just set the parameters as: 
&lt;BR /&gt;Key=True 
&lt;BR /&gt;DB TYPE=INT IDENTITY 
&lt;BR /&gt;LENGTH=1 
&lt;BR /&gt;PRECISION=1 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/192247/blob.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBJk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127746i37F392C04FE5FB73/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBJk.png" alt="0683p000009MBJk.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;you can always use tCreateTable.</description>
      <pubDate>Sat, 30 Apr 2016 16:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Create-MS-SQL-Server-Table-With-PK-and-Insert-into-it/m-p/2371726#M134631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-30T16:46:32Z</dc:date>
    </item>
  </channel>
</rss>

