我试图让存储过程触发并返回输出参数以及结果集。目前我只是得到一个带有输出参数应该是 balnk 变量的结果集数组。
//initiate function
$proc = mssql_init('usp_Web_Return_Installer_Details', $msdb);
$enrolledScopes = '';
mssql_bind($proc, '@InstallerID', $_SESSION['user']['Installer_ID'], SQLINT4, false, false, 10);
mssql_bind($proc, '@EnrolledScopes', &$enrolledScopes, SQLVARCHAR, true, true, 5000);
//Execute Procedure
$result = mssql_execute($proc);
do {
while ($row = mssql_fetch_assoc($result)){
$results[] = $row;
}
} while (mssql_next_result($result));
//Free Memory
mssql_free_statement($proc);
print_r($result);