Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
When I create an index on a table in sql server.
A unique id will be generated. How to view the unique id generated

If I create clustered index on a column having duplicate values, sql server will make it unique by appending some other data. How to get that inforamtion ?
Posted
Updated 27-Aug-15 23:14pm
v2
Comments
Advay Pandya 28-Aug-15 5:25am    
Do you want to know, where can we find the indexes in SQL server ?

1 solution

If i understand you well, you want to get ID for last inserted value. See: @@IDENTITY[^].
Similar functions: SCOPE_IDENTITY[^], and IDENT_CURRENT[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900