How to use(or) create int identity in stored procedure
how to use int identity in stored procedure
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Blocked AccountRank #403 · 6.2K reputationPosted Dec 5, 2012, 11:35 PM EST
Can you define your problem in more detail?
Thanks
Vithal WadjeRank #19 · 47.2K reputationPosted Dec 5, 2012, 11:42 PM EST
selvi subramanianRank #2,007 · 723 reputationPosted Dec 7, 2012, 7:24 PM EST
Deepak VermaRank #672 · 3.6K reputationPosted Dec 16, 2012, 6:24 PM EST
If you want to generate row number, have a look on this ROW_NUMBER (Transact-SQL).
And you can use "emp_id as int identity(1,1)", when creating temporary tables inside a Stored Procedure.