I have a normal database and not using any membership provider and I would like to auto-generate a new user ID which is created in database with a new user registration.
As seen below this is what I need.
I have a normal database and not using any membership provider and I would like to auto-generate a new user ID which is created in database with a new user registration.
As seen below this is what I need.
Copyright © 2021 Jogjafile Inc.
That is a GUID (in .net) or uniqueidentifier (in SQL).
If you are using Microsoft SQL Server you can execute the following T-SQL:
...and then execute your INSERT statement.
If you prefer to generate the ID in VB.NET you can use the following code: