data insert using input output stored procedure

前端 未结 3 1474
说谎
说谎 2021-01-22 21:20

I am creating a web application using ASP.net C#. I have a booking form and I need to insert data into a table using a Stored Procedure. The table has several columns, out of wh

3条回答
  •  猫巷女王i
    2021-01-22 22:08

    Change the return variable to:

    Select @RcptNo = SCOPE_IDENTITY()
    

    It will return the identity number created for the inserted record within this procedure.

提交回复
热议问题