Solved

Deleting records from an aspnet_Users table

Posted on 2009-06-30
3
539 Views
Last Modified: 2012-05-07
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
Comment
Question by:gabrielPennyback
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 24748391
you have to delet the user information from the dbo.aspnet_Membership first then from the other table
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 24748437
Man, I love it when it's this simple. Thanks!

John
0
 
LVL 1

Author Closing Comment

by:gabrielPennyback
ID: 31598482
Thanks again!
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question