How to Get the last identity value used

Answer Posted / guest

the last identity value used in an insert can be retrieved
with the @@identity function.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 1nf 2nf?

543


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

536


What is the significance of master, tempdb and model databases?

523


What is create statement?

523


How do you debug a procedure in sql server?

492






Which is faster statement or preparedstatement?

526


What is the log shipping?

578


Explain about unique identifier data type in sql server?

502


How you provide security to cube? : sql server analysis services, ssas

533


What is the difference between createstatement and preparedstatement?

488


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

666


Can foreign key be deleted?

523


To which devices can a backup be created and where should these devices be located? : sql server management studio

565


How to delete duplicate records based on single column from a table?

601


How to rebuild the master database?

573