How does SQL Server or Oracle or any database server applies constraints on the table>
I am aware of constraints, but how they are applied on the table or a column? I tried to find how SQL Server understands a requirement for a constraint and maintain the integrity.
Is there a Store Procedure or User defined function for applying a constraint? How does database server understand this scenario, when user is requested for mount a constraint on a table?