Quantcast
Viewing latest article 9
Browse Latest Browse All 10

[PHP] How to retrieve the connection status in PHP?

Hello dsmwb,

That seems like the right approach. Here is what I would do: run a cheap SQL select such as SELECT GETDATE() on the open connection, catch any SqlException that is thrown, check and re-establish the connection if needed.

Thanks,

Meet



Viewing latest article 9
Browse Latest Browse All 10

Trending Articles