Generate Six digit alphanumeric code in sql
tablieid
123SSA3
ssdf444A
1234455
1223ASA
so ...on
But number not repeat its is unique
If exist then next number is generated
I WANT A MAKE A SUCH TYPE OF PROCEDURE
IN SQL WHICH I WANT TO USE IN MY CODE
Refer below links.
https://stackoverflow.com/questions/26992161/how-to-generate-alphanumeric-random-numbers-using-function-in-sql-server-2008
https://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/
For duplicate you need to save the generated number and check while generating.
if already exists then generate new one.
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.