Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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