SQL: Naming PRIMARY KEY, CHECK and UNIQUE Constraints
For many years, SQL Server related tooling has been pushing us to use constraints without naming them ourselves. But SQL Server requires these to have names so it generates names for them. These system-generated names aren’t very helpful.
What’s the issue with system-generated names?
The first issue with them is that they can cause havoc with deployment and schema-comparison tooling unless you find and use options to ignore any system-generated names.
2026-06-13