I am using php with MSSQL.
I am trying to run a procedure from php script.
When i ran the same procedure from Query Analyzer it returned 14 rows.
But when i tried to run it from php script and tried to get the total number of rows back i got this error:
Fatal error: Call to a member function on a non-object in c:\program files\apache group\apache\htdocs\cms\overall_score_pdf.php on line 8
Please note that i am using adodb . This is my code:
$ADODB_FETCH_MODE = ADODB_FETCH_NUM;
$record1 = $DB_CONNECTION->Execute('SP_Overall_Result');
$TOTAL_RECORDS = $record1->RecordCount();
echo "total=".$TOTAL_RECORDS; (this is line 8 in my script)
exit;
This code is working with all other procedures but not with this . In SQL Server this procdure took 58 seconds to give results.