Products

Solutions

Learn More

Partners

Community

Blog

About

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 ...Delete DNN users permanently and reset the next userIDDelete DNN users permanently and reset the next userID
Previous
 
Next
New Post
4/18/2018 7:51 PM
 

Hello,

I have some text DNN users on my DNN users table. I created those users as registered DNN users. I want to delete these users permanently apart from the superuser. But my problem is when I delete these users, then the next new users' userIds are starting from the last userId even we delete the users permanently. The userId should be the next userId after the superuser. How can I do this?

Please, can you advise me?Thank you very much.

 

 
New Post
5/1/2019 1:55 PM
 
I know this is an old post but I'm wondering how to do the same thing. Did you figure this out or does anyone have a solution?
 
New Post
5/1/2019 2:20 PM
 
You'll want to read about T-SQL identity seeds

https://www.c-sharpcorner.com/blogs/h...

I don't know that I would recommend it, but you could give it a shot.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
5/2/2019 5:46 AM
 
Well, in my eyes, an ID is just an ID, you should not take care about that. An ID is not suitable to pack any information in it, nor to read anything out of it.

When you have 10 users with the IDs 1 to 10, and you delete the user with the ID 8, the next user you insert may have the ID 11 (or maybe 1011, when you restart the server in the meantime, as it is based on an identity seed and not on a sequence). Therefore it does not say anything, and it does not matter in any way (you do not have 11 nor do you have 1011 users, but 10 - the user ID is meaningless in terms of containing information).

And I would not recommend to play around with identity seeds in a production environment.

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
DNN Connect 2020
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Delete DNN users permanently and reset the next userIDDelete DNN users permanently and reset the next userID


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out