Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Merging the dimension records in Microsoft SQL Server databases

Updated on July 5, 2022

Before you perform this task, make sure that all the dimension tables are created and have index on the PZID column.

  1. Connect to the target database.
  2. Merge the records from the source table to the dimension table.

    MERGE INTO <TARGET_DATABASE>.<TARGET_SCHEMA>.PR_DATA_IH_DIM_<DIMENSION_NAME> T USING <SOURCE_DATABASE>.<SOURCE_SCHEMA>.PR_DATA_IH_DIM_<DIMENSION_NAME> SON (T.PZID = S.PZID) WHEN NOT MATCHED THEN INSERT (column1 [, column2 ...]) VALUES (S.column1 [, S.column2 ...]);
What to do next: If you want to merge the dimension records from the source database to the target database, repeat this procedure for all the dimension tables.
  • Previous topic Moving the FACT table records in Microsoft SQL Server databases
  • Next topic Deleting the records from the FACT table in Microsoft SQL Server databases

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us