note 128913 added to book.sqlsrv
| From: | denis dot khvorostin at gmail dot com | Date: | Sat, 23 Sep 2023 04:33:17 +0000 |
| Subject: | note 128913 added to book.sqlsrv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220872@lists.php.net to get a copy of this message | ||
There is no way to check the state of the Sql Server Connection in PHP currently. The only way is to
perform cheap query (e.g. SELECT GETDATE();) on the open connection, catch any SqlException that is
thrown, check and re-establish the connection if needed
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 5.19.7.5)
----
Manual Page -- https://php.net/manual/en/book.sqlsrv.php
Edit -- https://main.php.net/note/edit/128913
Del: integrated -- https://main.php.net/note/delete/128913/integrated
Del: useless -- https://main.php.net/note/delete/128913/useless
Del: bad code -- https://main.php.net/note/delete/128913/bad+code
Del: spam -- https://main.php.net/note/delete/128913/spam
Del: non-english -- https://main.php.net/note/delete/128913/non-english
Del: in docs -- https://main.php.net/note/delete/128913/in+docs
Del: other reasons-- https://main.php.net/note/delete/128913
Reject -- https://main.php.net/note/reject/128913
Search -- https://main.php.net/manage/user-notes.php