Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Removing duplicate emails / deleted accountRemoving duplicate emails / deleted account
Previous
 
Next
New Post
12/14/2011 5:37 AM
 

Hello

We are trying to tidy up portal that up to now has allowed more than one account for one email address. To do this I first need to remove all the duplicate email addresses that currently exist.

If I just delete the extra account then when I search for duplicate email addresses in the users table it still shows as a duplicate - I guess because I haven't hard deleted it, - this has thrown up 2 questions

1. Will it cause a problem when I switch to unique email addresses if I leave these soft deleted accounts in the database ?

2. Assuming it doesn't cause a problem to leave them there, does anyone have a SQL Script that identifies soft deleted users in DNN 5.6 - I can't find where the flag is (doesn't seem to be IsDeleted anymore ?)

The SQL I am using to find duplicate addresses is:

SELECT email, 
 COUNT(email) AS NumOccurrences
FROM users
GROUP BY email
HAVING ( COUNT(email) > 1 )

Thanks for any help

Vicky




 
New Post
12/18/2011 6:54 AM
 
you need to physically remove the users, from table users and ASPNET_users as well as ASPNET_membership, before enabling uniqueEmailAddress requirement.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/18/2011 11:52 AM
 

Thank you for the reply - does using the 'remove deleted users' feature in 5.6.3 delete the users in all these tables or do I need to do this via SQL ?

Thank you

 

 

 
New Post
12/18/2011 12:46 PM
 
"remove deleted users" should remove user records from all tables - if none of the modules placed a FK reference to the users table.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/12/2012 4:10 PM
 
Hi Sebastian,
Is there a way (script) to check table users, ASPNET_users and ASPNET_membership?
I have some users in aspnet_Membership and not in the others table (wrong deletion).
thanks
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Removing duplicate emails / deleted accountRemoving duplicate emails / deleted account


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out