Skip to main content

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

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

Last Update:

Jul 6, 2022 8:37:25 AM

Updated By:

john_wang

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 target endpoint, Replicate creates PRIMARY KEY by default if the source table has the PRIMARY KEY as well.  User want to create PRIMARY INDEX rather than PRIMARY KEY in Teradata Target tables.

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

 

Environment

  • Qlik Replicate All supported versions
  • Teradata           All supported versions

 

Detailed Steps:

1.  Open "Manage Endpoint Connections" in Replicate console GUI

2.  Go endpoint "Advanced" tab and add "Internal Parameter"

      The internal parameter name is:

$info.query_syntax.create_primary_key

      press enter after the input, it will appear in the below Parameter-Value matrix.

4. Assign the above parameter value as:

) PRIMARY INDEX ( ${COLUMN_LIST}

      The screencopy looks like:

john_wang_2-1657079770943.png

5. Run the task.

 

Related Content

Another approach : How to custom target endpoint syntax 

Support case # 00043847

 

Qlik Replicate  

Contributors
Version history
Last update:
‎2022-07-06 08:37 AM
Updated by: