What is SCOPE_IDENTITY() in sql

Answers were Sorted based on User's Feedback



What is SCOPE_IDENTITY() in sql..

Answer / deepthi

It will return the value of Auto Increment column , for the
newly inserted row value.

Is This Answer Correct ?    35 Yes 3 No

What is SCOPE_IDENTITY() in sql..

Answer / vipul

When new row insert into table its we can get value of auto
increment column using SCOPE_IDENTITY()

Is This Answer Correct ?    10 Yes 2 No

What is SCOPE_IDENTITY() in sql..

Answer / ranjani

Scope_Identity() returns last identity value inserted into
an identity column in the same scope.

Is This Answer Correct ?    7 Yes 2 No

What is SCOPE_IDENTITY() in sql..

Answer / 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

More SQL Server Interview Questions

Which institute is best for SQL Server 2005 Training?

6 Answers  


What do you mean by data integrity?

0 Answers  


How to optimize stored procedure optimization?

0 Answers  


What is table level trigger?

0 Answers  


Please give me queries for the following 1. To get the count of duplicate records. 2. A query to delete the duplicate records.

3 Answers   247Customer,






Can a table have 2 foreign keys?

0 Answers  


What language is sql server written in?

0 Answers  


What are relationships and mention different types of relationships in the dbms

0 Answers  


What are the type of Indexes? which one is best, why?

6 Answers  


How do I find the query plan in sql server?

0 Answers  


What is role playing dimension with two examples? : sql server analysis services, ssas

0 Answers  


Where are full-text indexes stored?

0 Answers  


Categories