Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can we find id for auto generated id(1,1) in asp.net
Posted
Comments
shreekar 21-Mar-12 15:29pm    
Auto generated by what database? Please be specific and also add tags as appropriate.

Do you mean value of latest value of identity inserted column? This[^] may help you...
 
Share this answer
 
Hi,
To access auto generated numeric value in MS SQL database, you can use select @@identity.

Get inserted record ID.
 
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