Was wonderin if anyone can help me, im trying to retrieve the identity value of a field x while doing an add to the table, in my vb6 code i call this stored procedure using a class module, how could i retrieve the value of my identity (field x) back, its not part of my add to the table its just in the table as counter.
any ideas?
any ideas?
Code:
CREATE PROCEDURE [sp_Projectnoteadd]
(@projectno_1 [int],
@notedate_2 [datetime],
@note_3 [text])
AS INSERT INTO [dbo].[ProjectNotes]
( [projectno],
[notedate],
[note])
VALUES
( @projectno_1,
@notedate_2,
@note_3)