We are executing a stored procedure against an MSSQL database with PHP.
When we hand build the stored procedure and execute it manually with Navicat we get the correct results.
When we build the query and execute it with PHP we get a different result.
Is there any way for us to PREVIEW the stored procedure that php is creating and executing against the server?
This is not the exact code but is is essentially what we are doing.
$stmt = mssql_init("sp_doSomething");
mssql_bind($stmt, "@sid", $sid, SQLINT4, false);
mssql_bind($stmt, "@value", $value, SQLINT4, false);
$result = mssql_execute($stmt);
I would love to be able to preview the actual SQL statement contained in $stmt.
Any help would be appreciated.