Getting return value from stored procedure in ADO.NET

前端 未结 5 1518
感动是毒
感动是毒 2020-12-09 03:43

I know that there is another question with nearly the same title, but it doesn\'t answer my question. I have a stored procedure, which returns the unique identifier after in

5条回答
  •  悲&欢浪女
    2020-12-09 04:45

    I solved the problem: you have to set SqlCommand.CommandType to CommandType.StoredProcedure in order to get return values and/or output parameters. I haven't found any documentation about that, but now everything works.

提交回复
热议问题