Ben PHP için MS sürücüsünü kullanarak ve zaman çıktısı alma SQL server 2005 karşı komut satırından bir php komut dosyası koşuyorum. Sorgu, SQL Server Management Studio yaklaşık 2 dakika sürer ve> 300.000 satırlar döndürür.
Komut ve her biri ben mi bir sqlsrv_connect(), sorguyu çalıştırmak ve ardından sqlsrv_free_stmt() ve sqlsrv_close() için birden fazla sorgu var
sqlsrv_errors(): çıkışı
Array
(
[0] => Array
(
[0] => 08S01
[SQLSTATE] => 08S01
[1] => 258
[code] => 258
[2] => [Microsoft][SQL Native Client]Shared Memory Provider: Timeout error [258].
[message] => [Microsoft][SQL Native Client]Shared Memory Provider: Timeout error [258].
)
[1] => Array
(
[0] => 08S01
[SQLSTATE] => 08S01
[1] => 258
[code] => 258
[2] => [Microsoft][SQL Native Client]Communication link failure
[message] => [Microsoft][SQL Native Client]Communication link failure
)
[2] => Array
(
[0] => 08S01
[SQLSTATE] => 08S01
[1] => 0
[code] => 0
[2] => [Microsoft][SQL Native Client]Communication link failure
[message] => [Microsoft][SQL Native Client]Communication link failure
)
)