Does SQL Server allow constraint violations (i.e. deferred constraints) in a transaction as long as the transaction has not been committed yet?
I ha
You can disable your constraints while running your transaction, and then reenabling them when you are done.
ALTER TABLE mytable NOCHECK CONSTRAINT myconstraint --... RUN TRANSACTION ALTER TABLE mytable WITH CHECK CHECK CONTRAINT ALL
Warning: This will affect all connections.