Skip to main content

 –

Moving the FACT table records in Microsoft SQL Server databases

Suggest edit Updated on March 11, 2021

Before you perform this task, make sure you have full access to the source and the destination databases (you need the database admin privileges).

  1. Connect to the source database.
  2. Move data.
    • If a table does not exist, execute the following script:

      SELECT * INTO <TARGET_DATABASE>.<TARGET_SCHEMA>.PR_DATA_IH_FACT FROM <SOURCE_DATABASE>.<SOURCE_SCHEMA>.PR_DATA_IH_FACT
    • If a table exists with the exact same columns:

      1. Make sure there are no primary key (PK) constraints on the PXFACTID column in the destination database and do not move any constraints.
      2. Execute the following script:

        INSERT INTO <TARGET_DATABASE>.<TARGET_SCHEMA>.PR_DATA_IH_FACT (column1 [, column2 ...]) SELECT column1 [, column2 ...] FROM <SOURCE_DATABASE>.<SOURCE_SCHEMA>.PR_DATA_IH_FACT
Did you find this content helpful? YesNo

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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