What is SCOPE_IDENTITY() in sql

Answer Posted / cow

scope identity will give you the last generated value for
the current session/scope. Note that @@identity is across
sessions.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please explain what is “asynchronous” communication in sql server service broker?

506


how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

458


Explain trigger and its types?

608


Write a sql query to delete duplicate records from a table called table1

582


How global temporary tables are represented and its scope?

547






what is sql server? : Sql server database administration

532


How to configure odbc dsn with different port numbers?

557


What are the different types of replication you can set up in sql server?

525


What is the data type of time?

511


How to enable tcp/ip protocol on a sql server?

587


What are recommended options to be used while using db mirroring? : sql server database administration

568


What is a transaction and why is it important?

565


how you can get the list of largest tables in a database? : Sql server administration

546


Is foreign key unique?

570


What are binary string data types in ms sql server?

652