Ive looked over and over again for help but nothing has helped, I have a stored procedure where i want to insert the last identity ie SCOPE_IDENTITY() as B but it keeps returning a NULL value
CREATE PROCEDURE dbo.Createletter
@A INT,
@B NVARCHAR(50),
@C NVARCHAR(50),
AS
BEGIN;
SET NOCOUNT ON;
BEGIN;
INSERT INTO dbo.Employees ( A, B, C )
VALUES ( @A, SCOPE_IDENTITY(),@C);
END;
END;
GO