How to Get the last identity value used
Answers were Sorted based on User's Feedback
Answer / guest
the last identity value used in an insert can be retrieved
with the @@identity function.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / chandramohan
scope_identity() would be the currect answer. To avoid potential problems professionals suggests this method since it returns the recently added value.
Is This Answer Correct ? | 1 Yes | 1 No |
Explain about builtinadministrator?
How can i change the column name.
13 Answers HCL, Yardi Software,
What is the difference between sdf and mdf?
What is 3nf normalization?
What are primary keys and foreign keys?
How to create a view using data from another view?
What is an sql server agent?
Explain what is dbcc?
Explain Different types of Projects?
diffrence between Cluster Index and non Cluster Index
How do I start sql server agent automatically?
Explain nested stored procedure. Syntax and an example for create nested stored procedure?