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 do I trace a query in sql server?
Define synonym?
How to provide column names in insert statements in ms sql server?
Write the Syntax for Cursors.
2 Answers CarrizalSoft Technologies, HP,
HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE
What is awe?
What is collation sensitivity? Explain different types.
Give the query of getting last two records from the table in SQL SERVER?
0 Answers Petranics Solutions,
What is the difference between a Application Server and a Database
Explain indexing and what are the advantages of it?
Can a function call a stored procedure in sql server?
What are the system database in sql server 2005?
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)