If you're adding records using a stored procedure, the @@IDENTITY variable will give you the last identity added to a table, for example:
Code:
CREATE PROCEDURE JobsInsert
(
@jobDesc varchar(50)
@min_lvl int
@max_lvl int
)
AS
INSERT INTO jobs (job_desc,min_lvl,max_lvl)
VALUES (@jobDesc,@min_lvl,@max_lvl)
SELECT @@IDENTITY AS 'Identity'
GO
If you execute a scalar against this, it will return the new identity