Solved

Deleting records from an aspnet_Users table

Posted on 2009-06-30
3
531 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Creating and Managing Databases with phpMyAdmin in cPanel.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now