1

For some reason, any call I make to sqlsrv_fetch_array is super slow. Usually right around 18 seconds.

I can do something as simple as:

$query = "SELECT * FROM Books WHERE ID = 121";
$rows = sqlsrv_query($connection,$query);
$row = sqlsrv_fetch_array($rows);

The query is quick, but the sqlsrv_fetch_array() takes about 18 seconds. The row has probably 50 columns, but doesn't seem like that should effect it too much.

I also tried sqlsrv_fetch_object() but that too took 18 seconds or so.

Any idea what could be causing this?

4

0 回答 0