I am in the process of converting some old PHP pages to use PDO.
Below are two simplified queries (not my actual queries) to aid understanding of the problem I\'m ha
The PDO engine sees this query as returning two result sets (the older mssql engine probably just ignored all but the last query in an overall query string). I have managed to make it work by skipping over the first result set (the temporary table) using the following command
$statement->nextRowset();
And then using $statement->fetch(); as normal