SELECT IDENT_CURRENT('tableName')
SCOPE_IDENTITY()
declare @id int insert into tblname values(val1, val2) select @id=SCOPE_IDENTITY()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)