I have the following stored procedure
CREATE PROCEDURE [dbo].[spInsert]
@name nvarchar(128),
AS
insert into NameIdentifier
( Name, Identifier)
values
( @name, NEWID());
SELECT @new_identity = SCOPE_IDENTITY()
SELECT * FROM NameAge where Id = @new_identity
Is there are a more efficient way to return the last inserted record complete with id and associated data?