sorry if this question is dumb but I cant seem to find the answer. Just starting out with SQL. I was reading the answers for Get the last inserted row ID (with SQL statement), and it seems that SCOPE_IDENTITY is "the latest inserted value". Is this operation locked right after insert because if not, then another newly inserted row may become something that got inserted right after the insertion I intended to get the ID of.
Thanks for the help!