What is the use of SCOPE_IDENTITY() function?
Answers were Sorted based on User's Feedback
Answer / saravakumar
Returns the most recently created identity value for the
tables in the current execution scope.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / bhupesh
Returns the last identity value inserted into an identity
column in the same scope. A scope is a module: a stored
procedure, trigger, function, or batch.
Is This Answer Correct ? | 3 Yes | 1 No |
What is the use of Port no?
Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.
State the difference between union and union all?
How do I change my passwords (database, LDAP, and so on) without causing an outage?
1.what is the purpose of using alias name in sql server? with certain example? 2.what is cursor?will u plz explain me in detail with certain example?
Do you know what is replace and stuff function in sql server?
user defined datatypes
Explain different types of lock modes in sql server 2000?
your distribution database is full what will u do
How to read data in a table with "select" statements?
How to generate create function script on an existing function?
Is the primary key column of a table an index in ms sql server?