S
Sahil Malik
There are variables in SQL Server for exactly this job -
@@IDentity
@@Scope_Identity
Ident_Current('tablename')
So your command could be a batched SQL command
Insert into monkeytable values (....) ;
Select @@Identity into lastmonkeynumber ;
Hope that helped
- Sahil Malik
Independent Consultant
You can reach me thru my blog - http://dotnetjunkies.com/WebLog/sahilmalik/
@@IDentity
@@Scope_Identity
Ident_Current('tablename')
So your command could be a batched SQL command
Insert into monkeytable values (....) ;
Select @@Identity into lastmonkeynumber ;
Hope that helped
- Sahil Malik
Independent Consultant
You can reach me thru my blog - http://dotnetjunkies.com/WebLog/sahilmalik/