
Why we use SELECT @@IDENTITY at last in Stored procedure sql
Most of the Stored procedure having SELECT @@IDENTITY syntax at last why that used?


Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Aakash MauryaRank #114 · 19.8K reputationPosted Aug 23, 2018, 4:34 AM EDT
Code AloneRank #488 · 5.1K reputationPosted Aug 23, 2018, 10:50 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 23, 2018, 4:44 AM EDT