What is SCOPE_IDENTITY() in sql

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of Embedded SQL

681


What is reference section?

502


What is the downside of using udf?

567


What is the difference between the application object and session object?

602


How to create a view using data from another view?

571






create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

505


1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.

1098


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

598


Explain identity in sql server?

569


Can we store videos inside the sql server table?

523


What the class forname () does?

547


as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration

538


What is the recommended total size of your memory optimized tables?

532


How can we use ConnectorJ JDBC Driver with MS SQL?

568


How to download and install microsoft sql server management studio express?

566