my table looks like this:
create table foos(
id uniqueidentifier primary KEY DEFAULT (newsequentialid()),
..
)
so the id is sequentially generated automatically, I’m not setting it
how do I get it’s value after the insert ?
(with identity I was doing insert ... select @@identity)
Returning the NewSequentialID() after Insert using the Output Clause
The basic idea: