Retrieving the value of RETURN @@IDENTITY in C#

后端 未结 5 1862
说谎
说谎 2021-01-20 03:22

Here\'s a very simple question. I have an SP that inserts a row into a table and at the end there\'s the statement RETURN @@IDENTITY. What I can\'t seem to find is a way to

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-20 04:22

    Someone says use

    IDENT_CURRENT('TableName')

    http://www.velocityreviews.com/forums/t303448-return-identity-after-sql-insert.html

    -Zubair http://zubairdotnet.blogspot.com

提交回复
热议问题