Re: Return pkID of last saved record - ASPUpload & @@Identity
- From: "manstein" <jkelly.admin@xxxxxxxxx>
- Date: 26 Nov 2005 21:36:00 -0800
Hey BigJ
If you know the table name then you can retreive the last identity
value with the function: IDENT_CURRENT('<table name>'). This works
accross all sessions and scopes. The problem with @@IDENTITY var is
that it is global only to the session where the insert occured. This
may not be the same session where you are quering the @@IDENTITY. If
this doesnt work for you, please post more info about how the details
are inserted into SQL server. thanks
best regards.
.
- References:
- Return pkID of last saved record - ASPUpload & @@Identity
- From: BigJohnson
- Return pkID of last saved record - ASPUpload & @@Identity
- Prev by Date: Re: Query Retrieval is slow
- Next by Date: Re: How copy table data from one database to another
- Previous by thread: Re: Return pkID of last saved record - ASPUpload & @@Identity
- Next by thread: Re: Return pkID of last saved record - ASPUpload & @@Identity
- Index(es):
Relevant Pages
|
|