Autogenerated SQL constraint names - why to avoid them(www.adathedev.co.uk)
submitted by
AdaTheDev(123) 2 years, 3 months ago
Autogenerated constraint names in SQL Server - are they convenient, or are they a hindrance? For me, they are a hindrance.
Why should I care that SQL Server autogenerates a constraint name when I don't explicitly specify one? Why does it matter if it names my PRIMARY KEY constraint "PK__Constrai__3214EC271FCDBCEB", or my DEFAULT constraint "DF__Constraint__ColumnA__21B6055D"?
This article explains reasons why you should specify a name yourself for each constraint.
|category: Database
|Views: 7
tags:
SQLServer Database another
Everyones tags:
Your Tags: