sql server - Deleting a SQL row ignoring all foreign keys and constraints -
I have a line in the table. This line has an ID column that is referenced in several other tables with millions of rows. SQL statement will always take time to remove the row. From my design, I know that the row I want to delete never references, so I would like SQL to unblock all other tables for any foreign key reference in this line and immediately remove the row Is SQL a quick way to do this in 2008? Maybe with something:
Remove from myTable where myTable.ID = 6850 IGNORE contracts
or something with those lines.
You can set obstacles on that table / column to not temporarily check, Then re-enable the constraints will be the normal form:
Transmit constraintName called the optional table table
then re-enable all the constraints
Check ALTER table table name ConstraintName
I think it would be temporary though? You obviously do not want to do it consistently
Comments
Post a Comment