I have some stored procedures where I do inserts into my SQL Server db. I would like to return this GUID for use for future inserts, or w/e I find use for it as.
I know I could generate the GUID in the procedure and return it someway from that, but I'd like to avoid generating it there as it has a default value for the primary key (guid) row. I recall a function like SCOPE_IDENTITY for returning the identity column you just used, anything similar to this as a GUID?
Help is appreciated! Thanks :)