Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Meaning of single row processing

Author  Topic 

Delinda
Constraint Violating Yak Guru

315 Posts

Posted - 2010-12-04 : 02:38:17
I read this article, http://jahaines.blogspot.com/2009/09/output-clause-great-alternative-to.html

What's the meaning of single row processing? This is regarding of Scope_Identity() function.

Need more explanation

Sachin.Nand

2937 Posts

Posted - 2010-12-04 : 04:04:50
The author is trying to say that if you insert 10 rows in a table, the Scope_Identity will return only the last inserted identity value(which he implies as single row processing) but there will be cases where you will want to get all the identity values of the 10 rows inserted.So a substitution for this will be using an OUTPUT clause.

PBUH

Go to Top of Page

Delinda
Constraint Violating Yak Guru

315 Posts

Posted - 2010-12-04 : 13:18:19
tq sir
Go to Top of Page
   

- Advertisement -