I was having a looking on this article about default constraints and I have a question. Is there a configuration in SQL Server 2008 that forbid naming creation of new default constraints declared without a proper custom name?
In other words, can SQL Server block this:
CREATE TABLE Test1 (
Val1 int DEFAULT -1,
Val2 int DEFAULT -2)
/*the fields above will generate a strange suffix in default constraint name such as DF__Test1__Val1__32E0915F*/
but allow this:
CREATE TABLE Test1 (
Val1 int Test1_Val1_DF DEFAULT -1,
Val2 int Test1_Val2_DF DEFAULT -2)
/*the fields will use proper custom name in default constraint name*/