Counting the number of rows returned by stored procedure

前端 未结 7 1757
礼貌的吻别
礼貌的吻别 2021-01-03 23:11

How do I count the number of rows a stored procedure would return the fastest way. Stored procedure returns rows around 100K to 1M records.

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-03 23:21

    Select @@rowcount:

    SELECT @@ROWCOUNT;
    

    After executing the stored procedure.

提交回复
热议问题