Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: The support homepage carousel is not displaying. We are working toward a resolution.

Replication of MS SQL tables that include computed columns

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

Replication of MS SQL tables that include computed columns

Last Update:

Oct 22, 2021 8:36:53 AM

Updated By:

OritA

Created date:

Oct 22, 2021 8:34:28 AM

When running a Replicate task with MS SQL source endpoint, replication of computed columns is supported for Full Load only. This limitation is also mentioned in the Replicate User Guide:

“"Replication of computed columns is supported in Full Load replication tasks only. During change processing, INSERTs to computed columns will appear as NULL on the target and UPDATEs will be ignored."

If you have a table with computed column and you would still like that the value of the computed column will be replicated to the target you can do one of the following:

Option 1 :

In the Replicate UI under task design --> Table settings (of the table with the computed column) --> transform

  1. Remove the computed column from the output columns list
  2. Add a new column (with the name that you wish to be created in the target) and define the desired computation expression (should be similar to the computation expression defined for the computed column in the source endpoint)

Note : with this setting Replicate will do the required computation (instead of the db).

Option 2:

  1. In the target endpoint create the table DDL with the computed column expression manually
  2. In the Replicate UI under task setting --> Full Load --> Full Load Settings --> If target table already exists:  set the option to ‘TRUNCATE before loading’

Note:  this setting affects all task tables. i.e. if you choose this option you would have to create by yourself,  in the target endpoint,  the DDL of all tables included in the task.

 

If you wish, you can set Replicate to suspend tables with computed columns that are included in CDC tasks. This can be done by setting the internal parameter suspendTableWithComputedColumn to True (under the MS SQL source endpoint à advanced tab à internal parameters)

Tags (1)
Contributors
Version history
Last update:
‎2021-10-22 08:36 AM
Updated by: