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 |
How many types of the database links?
Describe and explain about SQL native client?
Explain the phases a transaction has to undergo?
Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio
What is efficiency data?
What is the New in SQL server 2008?
How to find the date and time of last updated table?
what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration
What is a DBMS, query, SQL?
What action plan is preferred if sql server is not responding?
how many type of subquery?
How are SQL Server databases physically stored under Windows 2000?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)