Creating a Uniqie ID - ASP

I have a problem in creatiing a unique id for the lots coz it's been hard for me to create an id for the lot.Lot created by the broker.

 For example: Broker 1
        I used the string L then combine of 3 alpha (aaa) and 4 numeric(0000) as a result of:
        Laaa0000 = created Lot
        Laaa0001 = second Lot created (incremented by 1)
 and so on.... up to Laaa9999
 then next to that Lot result as:
        Laab0000 = Laaa change to Laab

 What if , I created another Broker. it may result like this:

 For example: Broker 2
       Lbaa0000 = created lot
       Lbaa0001 = second lot created (also incremented by 1)
 and so on .... up to same procedure as the Broker 1.

 Hope you understand my problem.Need help asap!Thanx
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

iceman_16Author Commented:
why not combine it with the broker id? (i assume they are stored in a database with unique identifiers?)

broker 1

broker 2

now they are all unique...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
If the values are being stored in database create the unique value in the database and then display it on the page.

Access set column type to AutoNumber
SQL Server set Data type to int and set Identity = Yes and you can select the Identity increment in the column following.
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

If the user does not know how to close the question, the options are here:


No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between hanneman and claywinNC

Please leave any comments here within the next seven days.


EE Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.