Home Forums SQL Server 7,2000 T-SQL Which one to use among Ident_Current,Scope_Identity and @@Identity? RE: Which one to use among Ident_Current,Scope_Identity and @@Identity?

  • Assume that there are a lot of people (e.g. 1,000+) are inserting records simultaneously into the database, will using SCOPE_IDENTITY (or any identity) right after the insertion return the correct PK? Would there be a chance that one personal will get a PK generated by another person since we have so many users inserting data into the database.

    Chai Xiong
    Hosted Service Manager
    Zelle LLP