create table test(id int identity(1,1),code int)
goinsert into test select 1
select @@identityinsert into test select 1
select @@identityselect * from test
godrop table test
go