i have two identity column col1 and col2 in my table
i have written an SP in which on new row addition i want the latest ID so that i could refer that to another table
my query when i write the query
"SELECT @Latest_id = SCOPE_IDENTITY()"
which value i will get Col1 or Col2
actaully i want Col2 value, should i need to change the query to get the desired result