title: sqlsrv_num_rows not working for Stored procedures
body: <p>I m using PHP-SQRSRV driver to read my MSSQL database.</p>
  
  <p>When I use sqlsrv_num_rows, i get 0 results as cursor can not be set properly. This happens just in case of Stored Procedures.
  I have used SQLSRV_CURSOR_STATIC &amp; SQLSRV_CURSOR_KEYSET both. None worked.</p>
  
  <p>Initially I got this error : Executing SQL directly, no cursor.. <a href="https://stackoverflow.com/questions/4777709/executing-sql-directly-no-cursor-in-php-when-calling-a-stored-procedure">Executing SQL directly; no cursor in PHP when calling a stored procedure</a></p>
  
  <p>But then after setting [sqlsrv_configure("WarningsReturnAsErrors", 0);] that was resolved.
  Now all I m getting is 0 or -1 as output.</p>
  
  <p>I want just counts of the records, not the whole record. And I have to use a stored procedure.</p>
  
  <p>Please help me find a solution to this.</p>