Unexpected behavior concerning constraint names
TSycamore
Posts: 3
hi folks!
I have compared databases with Constraint and Index Names set to Ignore. However, in the synch script, it is still trying to create a new Primary Key exactly the same as one that already exists with a different name - which, of course, fails. I thought this was what I was switching off. Am I wrong?
I have compared databases with Constraint and Index Names set to Ignore. However, in the synch script, it is still trying to create a new Primary Key exactly the same as one that already exists with a different name - which, of course, fails. I thought this was what I was switching off. Am I wrong?
Comments
The option is designed to allow you to see tables with different auto-generated constraint names as equal and avoid unnecessary name synchronization, but if you're creating a constraint or index in synchronization it will still specify a name and that will be the name in the source database.
Is there some way we could make this clearer in the UI / the description that comes up when you hover over the option?
Redgate Software
If you could give me (michelle.taylor@red-gate.com) an example of when it tries to create a primary key on top of another primary key, along with what project options you were using, I'll try to work out what's making it get the actions in the wrong order / fail to generate the drop action. I know there can sometimes be problems along these lines when 'Ignore Indexes' is on, so it's possible that Ignore Constraint And Index Names is causing similar problems.
Redgate Software