I need to set 3 columns (idUser, idLab, idProfile) as identity, but when I change one of them all the others set identity as "No" and only the latest one sets to "Yes".
Already checked its data type and all are set to "int"
I need to set 3 columns (idUser, idLab, idProfile) as identity, but when I change one of them all the others set identity as "No" and only the latest one sets to "Yes".
Already checked its data type and all are set to "int"
This is because you can have only one column as an identity column in your table. Please refer Can a sql server table have two identity columns? also.
We really do not need multiple Identity column in a table as we can always get the value of the other two columns from the one Identity column. Here, in this case, idLab and idProfile values same as idUser.
So, if I set idUser to be an identity column, it should suffice for me.