If you’re getting an error that reads something like “Cannot DROP SEQUENCE ‘Sequence2’ because it is being referenced by object ‘DF__Dogs__DogId__6C190EBB’“, it could be because you’re trying to drop a sequence object that’s referenced by a DEFAULT
constraint.
Sequences that are referenced by a DEFAULT
constraint can’t be dropped until the DEFAULT
constraint is dropped.
Therefore, to fix this issue, drop the DEFAULT
constraint first.