MSSQL 2005 DataStore: min_active_rowversion() returns incorrect value when persisting multiple entities.


This DataStore is currently using the function min_active_rowversion() to return database timestamp values, wich is incorrect in situations where multiple entities are being persisted.
SQL Server lacks a function similar to SCOPE_IDENTITY() for timestamps, for there is a need to find a better alternative.
Making the SELECT for the value is the obvious choice, but analyzing the use of INSERTED & UPDATED virtual tables is also a good possibility.
Closed Apr 3, 2009 at 2:21 PM by andresv


wrote Apr 3, 2009 at 2:21 PM

Resolved with changeset 26549.

wrote Feb 13, 2013 at 4:50 AM

wrote May 15, 2013 at 1:47 AM