Okay, so i have a stored procedure that inserts some values that VB.net passes it. thing is, i would like to capture the CountID field that is auto-populated by SQL with a Unique Value.can anyone point me in the right direction to a) get Sql to output the countid of the record it inserted and b) allow vb.net to capture that valueUSE [Test]GOalter PROCEDURE [dbo].[save_order_1] (@records int,@tableused nvarchar(50),@date datetime,@username varchar(50)) AS INSERT INTO dbo.orders (records,tableused,[date],username) VALUES(@parameters,@records,@tableused,@date,@username)