How to easily replace a table with another, when you have table dependencies

You're happy. The new MicroStrategy project is finally ready. You spent some time building attributes, facts, metrics and all the other necessary objects. But the same day, you receive an email from the database team announcing some table names changes. You are a bit disappointed for a moment, but then you remember there's an easy way to make these changes even if you have a ton of dependent objects based on those tables. The solution is right there and you're happy that you're going to fix it in seconds.

  1. Open Architect
  2. Identify (under Project Tables View) the table whose name has changed in the underlying database
  3. Select it and check the properties on the right
  4. Modify the name of the table under Definition -> Database Name and hot ENTER
  5. Acknowledge when metadata change has been made
  6. Set the same table name for the logical entry under Definition -> Name
  7. Save and update the schema
  8. Repeat steps 1 to 7 for as many tables you need

For this solution to be a success, you need to make sure that all the used fields in the dependent objects are still there in the new table.


You're done!

Comments

Popular posts from this blog

The count distinct adventure - Part I

The count distinct adventure - Part II

The surrogate key strikes back