title: How can I get the number of records affected by a stored procedure?
body: <p>For <code>INSERT</code>, <code>UPDATE</code> and <code>DELETE</code> SQL statements executed directly against the database, most database providers return the count of rows affected. For stored procedures, the number of records affected is always <code>-1</code>.</p>
  
  <p>How do we get the number of records affected by a stored procedure?</p>