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

What are the different types of sql server replication? : sql server replication

0 Answers  


Explain data warehousing in sql server?

0 Answers  


Does a sql server 2005 select statement require a from?

0 Answers  


What is sql collation?

0 Answers  


What is the cartesian product of the table?

0 Answers  






Is it possible to have clustered index on separate drive from original table location?

0 Answers  


What do you understand by recursive stored procedures?

0 Answers  


What are the types of stored procedures in an sql server?

0 Answers  


What is the meaning of lock escalation and why/how to stop this? : sql server database administration

0 Answers  


hi,i want t0 knom d syntax for a super key with an example

1 Answers  


Can two tables share the same primary key?

0 Answers  


What are subqueries in sql server?

0 Answers  


Categories