For me this default constraint doesn't make sense.
Yes, it makes no difference. If a column is nullable and you do not provide a value for it, it will default to NULL
.
But what I want to know is if it is harming performance - means does SQL Server check it even tough it is some sort of obsolete?
The default constraint itself will not harm performance. But the NULL
values can affect performance.
For example, SQL queries must handle NULL values with special logic when doing comparisons.
Best regards,
Cosmog
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".