I have an insert sql with sql server and then call select @@identity straight after, i am trying to use the identity id with a stored procedure, is this even possible
eg
insert into ...
select @@identity
EXEc add 'ss' @@identity
thanks a
edit---
i basically want to use the value of the id which i'm getting now with
SELECT SCOPE_IDENTITY() ;
to use in a query straight after the insert.