I inherited an SQL database (Microsoft?), Which was not very pristine in its original state. There are still very strange things in it that I'm trying to fix - one of them is inconsistent identities.
In the account table, each entry has a number called accountID, which is referenced in several other tables (notes, equipment, etc.). The problem is that the numbers (for some random reason) vary from about -100,000 to +2,000,000 when there are about 7,000 records.
Is there a good way to reuse their numbers when changing the corresponding numbers in other tables? I also have ColdFusion at my disposal, so any thing that works with SQL and / or I accept.
source
share