Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 last identity

Author  Topic 

niranjankumark
Posting Yak Master

164 Posts

Posted - 2008-05-06 : 06:54:24
hi ,
i have identity column and inserting in to that frequently , need to find the latest identity value how to find

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2008-05-06 : 06:55:24
Use IDENT_CURRENT() function.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

ranganath
Posting Yak Master

209 Posts

Posted - 2008-05-06 : 10:20:45
hi,

use Scope_Identity() also
Go to Top of Page
   

- Advertisement -