为什么总是只能获取第一个结果集?
存储过程:CREATE PROCEDURE [dbo].[P__getBothData]
as
set nocount on select * from _T1 where sid = 3
select top 2 * from _User_Co where coName like '%北京%' order by CompanyIdset nocount off
PHP:try {
$pdo = new PDO('mssql:host=localhost;dbname='.$db, $user, $pwd);
$stmt=$pdo->prepare('exec P__getBothData');
$stmt->execute();
$i = 1;
do{
$rowset = $stmt->fetchAll(PDO::FETCH_NUM);
if($rowset){
printResultSet($rowset, $i);
}
$i++;
} while ($stmt->nextRowset());
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
function printResultSet(&$rowset, $i) {
    print_r($rowset);
    echo '<br>'; 
}