SQL Server: Deleting Rows with Foreign Key Constraints: Can Transactions override the constraints? -
i have few tables foreign key constraints added. these used code generation set specific joins in generated stored procedures.
is possible override these constraints calling multiple deletes within transaction, "transactionscope" in c# or cascaded deleting absolutely required?
do not use cascade delete, can cause serious performance issues way. best procedure deletes in order lowest child table parent table.
disabling foreign keys prescription having data integrity problems. time should done dba extremely experienced , aware of issues cause. if asking question, not yet experienced enough use technique. remember when disable fk, disable not process.
Comments
Post a Comment