I have an SQL query which returns 792 rows (currently - it varies).
When I try to display the results on a webpage, a JSON object, the page is blank. I know that the reason for this is some sort of maximum limit on results - through trial & error (using SELECT TOP
) I know the limit is around the 430 mark (although I'm sure it's based on data rather than number of rows).
How can I increase this limit? I am running PHP Version 7.3.8 x64 on IIS 8.5
My PHP code is
$sql = "SELECT * FROM dbo.Files WHERE Status = 'Open'";
$stmt = sqlsrv_query($mysqli, $sql);
$result = array();
do {
while ($row = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC)){
$result[] = $row;
}
} while (sqlsrv_next_result($stmt));
sqlsrv_free_stmt($stmt);
sqlsrv_close($mysqli);
echo json_encode($result);