Algorithmically speaking, how could I create a unique, readable, reasonably extended order number for a SQL Server column. The only requirement is that it refers to the customer number and can be easily repeated by phone.
Sort of:
- Customer Number - XXXXXXXX - XXXXXXXX
RT65-XXXXXXXX-XXXXXXXX
How do I create XXXXXXXX? (Use random alphanumeric data, and then checking to see if this is a duplicate?)
and
What are the best methods / considerations when creating these types of numbers?
How did you do this in your application?
user113476
source
share