Skip to main content
Solved

Migrate DimTable from Old SQL Server DW to TX


ignacio
Contributor
Forum|alt.badge.img+1

Hi Friends, 

I contact you because I have to migrate a Dim Table with SCD 2 from the Old SQL DW to TX and after that set the TX Dim to the following working, Is there any process to do that? 

Thanks  for your help 

Ignacio

Best answer by Thomas Lind

Hi Carlos

Not really, we can upgrade projects/instances with a history table to a new version, but moving the actual data from one database to the other is not something we can automate.

If you move a project to another repository and want to keep the data in some history tables there is a specific procedure, that can be automated with the correct script, which I unfortunately do not have.

The procedure is as follows.

  1. Move or import the project to a new repository.
  2. Create new databases to store the data.
  3. Deploy, not execute, all tables.
  4. Locate one of the history tables in the new database and check the extended properties of the table.
  5. Copy the guids from there and overwrite the original databases extended property guids.

     

  6. Now you can connect to the original database in the new project.
  7. You will have to do this for all tables you have history  in.

There was a script that could do this, as it will take a while to do for all tables.

The other option is to export and import the data with a script, to valid should be enough.

 

View original
Did this topic help you find an answer to your question?

6 replies

Thomas Lind
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 1058 replies
  • Answer
  • May 1, 2023

Hi Carlos

Not really, we can upgrade projects/instances with a history table to a new version, but moving the actual data from one database to the other is not something we can automate.

If you move a project to another repository and want to keep the data in some history tables there is a specific procedure, that can be automated with the correct script, which I unfortunately do not have.

The procedure is as follows.

  1. Move or import the project to a new repository.
  2. Create new databases to store the data.
  3. Deploy, not execute, all tables.
  4. Locate one of the history tables in the new database and check the extended properties of the table.
  5. Copy the guids from there and overwrite the original databases extended property guids.

     

  6. Now you can connect to the original database in the new project.
  7. You will have to do this for all tables you have history  in.

There was a script that could do this, as it will take a while to do for all tables.

The other option is to export and import the data with a script, to valid should be enough.

 


Christian Hauggaard
Community Manager
Forum|alt.badge.img+5

HI @ignacio does Thomas’ comment answer your question? If so please help us by marking the best answer above. If you have any follow up questions please let us know 


ignacio
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 29 replies
  • May 14, 2023

Hi team!

I did the following task:

  1. Developed all the logic of the dimension table in TX
  2. Used the import data of SQL Server, and copi de source dim table to DSA. 
  3. The target dim table is in MDW with setting HI, I used source dim table in DSA as mapping, y ran the execute.
  4. After the load, I updated the values in  [SCD From DateTime], [SCD To DateTime],[SCD Is Current] to match the source dimension.

Let me know your thought

regards

Carlos Ignacio Aguero


Thomas Lind
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 1058 replies
  • May 15, 2023

Hi Carlos

If it worked like that it is a fine method. I haven’t tried it before as I would usually get errors about missing constraints or similar.

You used this option, right?

 


ignacio
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 29 replies
  • May 16, 2023

Hi Thomas, 

I would like to show you how I did it in a call. my email is ignacio@datamartin.ca.

Regards

Carlos Ignacio Aguero

 


Thomas Lind
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 1058 replies
  • May 17, 2023

Hi Carlos

Sure. I have sent an private message to you.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings