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 sql injection? How to protect against sql injection attack?
what is the difference between openrowset and openquery?
What's the difference between a primary key and a unique key?
Explain database normalization?
How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication
What are transactions in sql?
Explain log shipping?
Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?
what is datawarehouse?
how to copy sysdatabase file from c: Drive to D: Drive in SQL Server.
What are the Pre Requisites when you apply Srvice Packs?
how we use window authentication connection with sql server.?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)