Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Generate a alphanumeric id for primary key min 4 digits

$
0
0

hi

How to generate an min 4 characters alphanumeric value to insert as a primary key value along with inserting  a new record. The 4 characters should be increased to 5, 6 , 7 when there is a deficit of available alphanumeric values that can be generated by the function that is generating the alphanumeric value.

I don't want to use unique identifier or autoincrement integer values

thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>