Alex A
asked on
SQL Server: default constraint
Table column has default constraint.
Is better to have it's value in INSERT statement or let DEFAULT work?
Thanks.
Is better to have it's value in INSERT statement or let DEFAULT work?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Think of this scenario: in one place where insert is coded you will use the default value, then after a while another developer or dba will code/run an insert without any default, because they forgot, didn't care, whatever reason, and now you have an unwanted result.