I have a few constraints (to default the value of the column) on a table that is being updated. The update is really slow, and I was wondering if it could be the constraints fault?
The constraint in question is:
ALTER TABLE [dbo].[OrderCustomers] ADD CONSTRAINT [DF_OrderCustomers_AmountTotal] DEFAULT ((0.00)) FOR [AmountTotal]
The update statement is just changing a few columns one of which is the column in the Constraint above and the a few other columns that don't have FKs on them.
FYI: I disabled all triggers to isolate the problem.