We are using ASP.net MVC 4 on DB/2 database. How can I create a way to avoid data concurrency and give a user a unique number to be stored in a unique field of a table and handled on the database side?
If I create a stored procedure to do this, how can I return a static number to make sure each call will return an incremented number and not just check a specific column's max value and adding one.