I know I can update a single record like this - but then how to I get access to the id of the record that was updated? (I\'m using MSSQL so I can\'t use Oracles RowId)
I would do the following:
Begin Tran update myTable set myCol = 'foo' where itemId in (select top 1 itemId from myTable ) select top 1 itemId from myTable Commit Tran