Question

I need to export/update schema without loosing existing data. I found that there are two Red Gate tools which you are probably have heard about:

  • SQL Compare;
  • SQL Data Compare;

Which one of them could help me to solve migration?

Was it helpful?

Solution

You need SQL Data Compare, because SQL Compare is only synchronizes the schema not the data.

OTHER TIPS

It depends on the nature of the change. SQL Compare will preserve your data when it makes a schema change, even if a change that requires a table rebuild.

However, if you make a change such as a table rename, or a table/column split, SQL Compare won't understand the 'intent' and may produce a script that isn't as you would expect.

The solution to that would be to use SQL Compare in conjunction with SQL Source Control and its migration scripts feature, which makes it highly customizable.

SQL Compare would be sufficient, If the warning is a result of a table rename, you can simply use the table mapping tab in the 'project settings' to tell SQL compare that they are the same table. P.S. I know this post is ancient, but it's best to use the right tool :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top