• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 567
  • Last Modified:

Deleting records from an aspnet_Users table

I'm trying to delete some records from my test database and I get this message:

ERROR: The DELETE statement conflicted with the REFERENCE constraint "FK__aspnet_Me__UserI__164452B1". The conflict occurred in database "DJRTest1", table "dbo.aspnet_Membership", column 'UserId'. The statement has been terminated.

So how do I delete a record from the aspnet_Users and aspnet_Membetrship tables?
0
gabrielPennyback
Asked:
gabrielPennyback
  • 2
1 Solution
 
Aneesh RetnakaranDatabase AdministratorCommented:
you have to delet the user information from the dbo.aspnet_Membership first then from the other table
0
 
gabrielPennybackReliability Business Tools Analyst IIAuthor Commented:
Man, I love it when it's this simple. Thanks!

John
0
 
gabrielPennybackReliability Business Tools Analyst IIAuthor Commented:
Thanks again!
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

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

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