1. --Make the System ignore the constraint
    ALTER TABLE PK_ConstraintsTableName NOCHECK CONSTRAINT ALL

    --Now Delete
    DELETE
    FROM
    TableName
    WHERE WhereClause

    --Put the contraints back
    ALTER TABLE PK_ConstraintsTableName CHECK CONSTRAINT ALL



    0

    Add a comment

Blog Archive
Topics
Topics
Loading
Dynamic Views theme. Powered by Blogger. Report Abuse.