Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

Constraints

If I want to delete rows from a table, can I just disable the constraints, delete the rows, and then enable the constraints or do I have to remove rows from 15 child tables first?
0
msimons4
Asked:
msimons4
1 Solution
 
slightwv (䄆 Netminder) Commented:
You can do either.  

I suggest NOT disabling constraints unless you absolutely have to.  When disabled, 'bad' data might sneak in from others doing inserts.
0
 
sdstuberCommented:
if you have cascading deletes, you might not need to do anything special.

simply delete the parent and the children will update or delete accordingly
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now