PDO sqlsrv database connection timeout

Viewed 4388

With MySQL I can use

$pdo->setAttribute(PDO::ATTR_TIMEOUT, 5);

to set connection timeout value. But when I'm using sqlsrv driver, it's working different. Can you explain how to set connection timeout with sqlsrv?

Thanks in advance.

1 Answers
Related