Comparison of tables, columns in Databases
Ruslan_2024
Posts: 3 New member
Hi
I masked the database 3 months ago using DATA MASKER. Now I want to mask the same database again. How to determine if new tables and columns have been created on it. In short, I want to compare the old with the new.
I masked the database 3 months ago using DATA MASKER. Now I want to mask the same database again. How to determine if new tables and columns have been created on it. In short, I want to compare the old with the new.
Tagged:
Answers
If you want to compare the masked database to a new copy of the database though then you might want to use Redgate SQL Compare to check for schema differences.
Hope that helps!
If I masked same schemas 5 times, which one will be stored in Data Masker config? And can I compare 1st and 5th schemas?
Refreshing a masking set: Refreshing a Masking Set Controller - Advanced Operations with Data Masker for SQL Server - Redgate University (red-gate.com)
If you use the Schema Comparator it will compare the current version of the schema in Data Masker to the Live Schema of the Database you're connected to
What is stored schema, if I masked 5 times same schema which one it will store?
This is because DM is generating the UPDATE/MERGE statements which, if no conflicting schema change is present (like a missing column) will of course still succeed - probably hence why you were able to run the masking 5 times even if t here were changes.
If you use the Schema Comparator now and haven't ever refreshed the controller, DM will think the database looks exactly the same as it did 3 months ago and so will compare the "Offline Schema" with the schema of the live database and tell you the differences.
If you then want to update DM so it's aware of any new tables and columns then you can refresh the controller as the video shows.