tumbleweed
New member
- Joined
- Jul 14, 2008
- Messages
- 1
- Programming Experience
- 1-3
I have the following situation:
A SQL Server table consists of numerous matrices. Each matrix is identified by a field called MatrixNum. So the 3 lines that make matrix1 all have '1' in the MatrixNum field. The 5 lines of Matrix2 all have the value of '2', etc.
I need users to be able to add matrices by way of a Datagrid within a VB .Net windows application.
The challenge: When a user goes to create a new matrix, I need to generate a unique value for MatrixNum that can then be inserted with each row of the matrix and, if someone else were to create another matrix at the same time from another location, they would have to have another unique MatrixNum created/assigned.
Anyone have any suggestions on how to best go about this?
A SQL Server table consists of numerous matrices. Each matrix is identified by a field called MatrixNum. So the 3 lines that make matrix1 all have '1' in the MatrixNum field. The 5 lines of Matrix2 all have the value of '2', etc.
I need users to be able to add matrices by way of a Datagrid within a VB .Net windows application.
The challenge: When a user goes to create a new matrix, I need to generate a unique value for MatrixNum that can then be inserted with each row of the matrix and, if someone else were to create another matrix at the same time from another location, they would have to have another unique MatrixNum created/assigned.
Anyone have any suggestions on how to best go about this?