Fetch scope_identity value in C# code from stored procedure in 3 tier architecture

前端 未结 2 1272
生来不讨喜
生来不讨喜 2020-12-07 06:04

I need to fetch scope_identity() value from a stored procedure after inserting data in C# code.

Here I am using 3 tier architecture. Please anyone help

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 06:35

    Read this article: http://www.mikesdotnetting.com/Article/54/Getting-the-identity-of-the-most-recently-added-record

    And get your acceptance rate higher.

提交回复
热议问题