D
David W. Fenton
Over on StackOverflow someone was asking about how to get the last
Autonumber value, and I suggested SELECT @@IDENTITY in the same
connection as the insert is made, and said "just like SQL Server."
Someone responded that in SQL Server you should use the
SCOPE_IDENTITY() function instead, so I looked it up:
http://msdn.microsoft.com/en-us/library/ms190315.aspx
....and that made me think that in A2010 with table-level data
macros, SELECT @@IDENTITY might end up not being reliable if the
insert causes a trigger to insert a record in another table (as
described in the MSDN article).
Does anyone working with A2010 have any idea what MS has implemented
to address this?
Autonumber value, and I suggested SELECT @@IDENTITY in the same
connection as the insert is made, and said "just like SQL Server."
Someone responded that in SQL Server you should use the
SCOPE_IDENTITY() function instead, so I looked it up:
http://msdn.microsoft.com/en-us/library/ms190315.aspx
....and that made me think that in A2010 with table-level data
macros, SELECT @@IDENTITY might end up not being reliable if the
insert causes a trigger to insert a record in another table (as
described in the MSDN article).
Does anyone working with A2010 have any idea what MS has implemented
to address this?