I am trying to insert a record into a table that has an identity field and have the identity value returned after the insert. I have included a portion of the stored procedure that returns this value but my question is how to i get the value returned to visual basic so i can display it to the user.
The stored procedure is as followed.
@CategoryName nvarchar(15),
@Identity int OUT
AS
INSERT INTO ticket_category (category_name) VALUES(@CategoryName)
SET @Identity = SCOPE_IDENTITY()