create table #test (a int identity(1,1), b varchar(20), c varchar(20)) insert into #test (b,c) values (\'bvju\',\'hjab\') insert into #test (b,c) values (\'bst\',\'
insert into #test (b,c) values ('bvju','hjab') insert into #sample(e,f) values (@SCOPE_IDENTITY(), 'jkhjk')
@SCOPE_IDENTITY() returns the last identity value used