June 27, 2005 10:27 PM
DML With Results
Immediately access just-modified data for further processing
Rating:

(0)
SQL Server Magazine
InstantDoc ID #46844
Have you ever needed to modify data and then—in the same transaction—access that just-modified data for further processing? For example, suppose you need to load multiple rows into an Orders table with one INSERT SELECT statement. An identity property automatically generates the order IDs. You need to access the just-loaded rows to get the newly generated order IDs, then use those IDs to generate order details. In SQL Server 2000, such a task is far from simple. SQL Server 2005, howe...
...This article is for paid Professional Members only.
Already a Professional Member? Please log in now: