Comments
6 comments
-
I could not reproduce your issue because I ran across another bug. But SQL Compare does recognize that the constraint needs to be enabled/disabled - it's just that the command fails because SQL Compare is not respecting the "ignore system-generated names" option when enabling/disabling constraints.
However, this would explain the problem if you did not see the error message when the sync script ran and just went by the end-result, which was that the constraint was not disabled or re-enabled (depending on the direction you ran the sync).
I filed a bug SC-6104 about this, but not with your problem description (change not detected) but rather that the system-generated name is not ignored; the difference is you can visually confirm SQL Compare finds the difference, it is just not synchronized correctly. -
Thanks Brian
My reported bug is about disabled indexes (sys.indexes.is_disabled), not constraints as such
Obviously a unique constraint and a primary key are indexes, but explicit indexes (CREATE INDEX) that are disabled are not detected: neither are indexes (from constraints) from CREATE TABLE
So, neither the PK nor IX_Other or IXCU_PK are detected. Only the table PK has a system generated name, the others are explicitly named -
any update please?
-
One year later... any update please?
-
I can reproduce this too.
http://www.red-gate.com/MessageBoard/vi ... hp?t=20479
[edit] Actually, my reproduction was about disabled constraints, not disabled indexes. But my symptoms seem similar to these symptoms. -
They don't bother fixing much these days.
I'm going right off SQL Compare because of continual low level unfixed bugs.
Add comment
Please sign in to leave a comment.
tl;dr: SQL Compare does not detect disabled indexes
More...
I was playing with a bulk load script for test data.
In this, I disable constraints (CHECK and FK) and triggers.
However I wanted to disable some indexes temporarily. It failed and I needed to reset the database schema.
I thought I re-enabled all indexes (and constraints and triggers) and this appeared to be all OK when I used SQL Compare.
However, my overnight maintenance jobs failed because an index on an indexed view was still disabled. I had used sp_MSForEachTable which skipped the view
Repro script: