Doubling up of Alpha numeric password

  • I have a vb6 application and the database is housed on an SQL2000 server. My problem is that the vb6 function should increment the numeric form of the ID and then affix the prefix alphabeth aprt to it but strangely i'm getting duplicate ID fields. Once or twice i've had to manually change the ID to what it should be. Could it be because i am doing this?

  • glycere2000 (6/5/2013)


    I have a vb6 application and the database is housed on an SQL2000 server. My problem is that the vb6 function should increment the numeric form of the ID and then affix the prefix alphabeth aprt to it but strangely i'm getting duplicate ID fields. Once or twice i've had to manually change the ID to what it should be. Could it be because i am doing this?

    You'll need to provide some more details to get a decent answer;

    offhand, from what you said it sounds like the vb6 function should increment the numeric form of the ID doesn't generate a unique value.

    actual examples would help, but i'm thinking the issue is there.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Can you say what other specifics you need? This particular function has been working well for years and only about couple of months i realized this has happened sporidically. That's why i was wondering if its my interaction with the database.

  • glycere2000 (6/5/2013)


    Can you say what other specifics you need? This particular function has been working well for years and only about couple of months i realized this has happened sporadically. That's why i was wondering if its my interaction with the database.

    there's a lot of combined talent with all the volunteers that look at this thread, so the more detail you can provide, the more we can help.

    lets see the vb6 function; maybe after years it's hitting the 32767 VB6 Integer limit, and the code is rolling over and creating repeats;

    that's just a guess, but one possible explanation.

    remember all i can tell about the issue, is what you post here; you've got the insiders look at the issue, but also insider assumptions that we know what you see, but we really can't; you have to post it here for us to see it too.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • What came to my mind is that 2 users tried to insert a row at similar times and both got the same ID from the VB function.

    Why don't you have any constraint in this column?

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • Only one user uses the application at any given time because only one entry clerk is assigned the task.

  • I will post the codes in a little bit. Thank you for replying

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply