Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!

Qlik Replicate: How to create PRIMARY INDEX rather than PRIMARY KEY in Teradata Target DB

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
john_wang
Support
Support

Qlik Replicate: How to create PRIMARY INDEX rather than PRIMARY KEY in Teradata Target DB

Last Update:

Sep 17, 2024 4:23:30 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jul 6, 2022 12:03:26 AM

Sometimes the target default endpoint behavior does not meet our needs. This article is useful if we want to modify the default syntax. 

For example, while Teradata is the target endpoint, Qlik Replicate creates a PRIMARY KEY by default if the source table has the PRIMARY KEY as well.  Users want to create a PRIMARY INDEX rather than a PRIMARY KEY in Teradata Target tables.

The below steps demonstrate how to customise the CREATE TABLE behavior.

Environment

  • Qlik Replicate All supported versions
  • Teradata All supported versions

Detailed Steps

To achieve this, we will add an Internal Parameter to the Endpoint.

  1. Open Manage Endpoint Connections in the Qlik Replicate console GUI
  2. Go to the Endpoint connection
  3. Switch to the Advanced tab
  4. Click Internal Parameters 
  5. Add the following parameter:

    $info.query_syntax.create_primary_key
  6. Add the following value:

    ) PRIMARY INDEX ( ${COLUMN_LIST}

    For more information about Internal Parameters, see Qlik Replicate: How to set Internal Parameters and what are they for?

    internal parameter primary index.png

  7. Run the task

 

Related Content

Another approach: How to custom target endpoint syntax 

Internal Investigation ID(s)

00043847

Labels (1)
Version history
Last update:
‎2024-09-17 04:23 AM
Updated by: