What is SCOPE_IDENTITY() in sql
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What is partition, how will you implement it? : sql server analysis services, ssas
Can we check locks in database? If so, how can we do this lock check?
How to grant a permission in ms sql server using "grant execute" statements?
What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas
How do I view a procedure in sql server?
List the different types of joins?
How do you check the performance of a query and how do you optimize it?
What is the default server name for sql server?
what is joins please explain breffly ??
What is the difference between Temporary table variable and a Table variable? Or Which Table variable I should use inside Stored procedure?
3 Answers Microsoft, TCS, Techastrum,
how can a database be repaired? : Sql server administration
Can we call a function that has out parameter in select statement