You could try using "Scope_identity" function. The following blog has further explanation:
- http://blog.sqlauthority.com/2007/03/25/sql-server-identity-vs-scope_identity-vs-ident_current-retrieve-last-inserted-identity-of-record/
- http://msdn.microsoft.com/en-us/library/ms190315.aspx