Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6066213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:28:36+00:00 2026-05-23T09:28:36+00:00

A set users each may have an AccountNumber, so in order to create a

  • 0

A set users each may have an AccountNumber, so in order to create a new account, I will increment the highest existing account number by 1. How would you keep track of the last issued number? Of course one could loop through all accounts to check, but is there any reason why one would perhaps chose to keep a separate table of either the last issued number, or all numbers?

I’m just looking at a few thousand accounts, so it’s not that i’m worried about optimization.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:28:37+00:00Added an answer on May 23, 2026 at 9:28 am

    You should probably use IDENTITY if you’re using MS SQL, or equivalent if you’re using some other DB.

    That will keep track of the ids properly, even when two people are trying to create an account at the same time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my web application we have many users.I want to set permission for each
I'm doing a sorting of a set of users, I have 4 groupings like
I have a 500,000 line SQL script: UPDATE users SET region_id = 9814746 WHERE
I have a dialog box that allows users to set hotkeys for use in
I have a set of select inputs representing a users birthday: birthyear, birthmonth and
I have a fairly straightforward set of php forms that take users through a
We have an PHP/MySQL application where the users can create their own databases, which
My website has public-facing profiles. Users may have 145x145 profile images that are displayed
My Rails application makes use of Time.zone so that each user can set their
I want to allow users of my application to add sub-users and set privileges

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.