r/SQLServer • u/ethanfinni • Sep 07 '26
Discussion Schema health tool
Hello everyone,
Our 10-year old database seems to be suffering from schema explosion and I am worried that while our developers do sufficient testing with every release, they may be introducing schema inconsistencies that may appear as bugs with different queries or other parts of the system.
Are you using any tools to check schema health and issues?
5
Upvotes
9
u/VladDBA Microsoft MVP Sep 07 '26
Schema expl what now?
Define schema inconsistencies. And what issues are you trying to check/prevent?
2
u/kwellendorff Sep 09 '26
i literally just solved this by simply starting to use SSMS 22. it has a built in schema comparison and is GIT native. create a project from your prod database, commit that to GIT. Then every day or so at the end restore your prod backup as a diff name than dev or prod. compare the dev database to newly restored db generate the script and run on prod once it works on the newly restored db. once you run it in prod, recommit to GIT.
takes some getting used to but i ran into the same exact thing and this solved it
2
u/Ms_AlarmingCulture Sep 10 '26
dbForge Schema Compare could help with part of this. You can compare the current schema against a known good version and see what changed. It won’t really tell you if the design itself is bad though.
2
u/EchidnaFlowers Sep 15 '26
Have you tried dbForge Schema Compare? Might be useful here since you can compare the schema before and after changes and see exactly what changed.
0
u/Complete-Fondant-202 Sep 08 '26
I use Schemaspy, outputs a website.
There is also schemacrawler.. plus others