How do I execute a MS SQL Server stored procedure in java/jsp, returning table data?

前端 未结 4 2009
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 18:39

I am having difficulty executing a MS SQL Server stored procedure from Java/jsp. I wish to return a table set of data; the last line of the stored procedure is a regular se

4条回答
  •  攒了一身酷
    2020-12-02 19:33

    FWIW, sp_test will not be returning anything but an integer (all SQL Server stored procs just return an integer) and no result sets on the wire (since no SELECT statements). To get the output of the PRINT statements, you normally use the InfoMessage event on the connection (not the command) in ADO.NET.

提交回复
热议问题