You can check for Showplan messages using this callback. Showplan message numbers go from 6201 through 6292 (at least here, on SQL Server/11.0.3.3).
select error, description from master..sysmessages where error between 6201 and 6292
![]() | sybase_set_message_handler(PHP 4 >= 4.3.0, PHP 5) sybase_set_message_handler -- Sets the handler called when a server message is raisedDescriptionbool sybase_set_message_handler ( callback handler [, resource connection] )sybase_set_message_handler() sets a user function to handle messages generated by the server. You may specify the name of a global function, or use an array to specify an object reference and a method name.
The handler expects five arguments in the following order: message number, severity, state, line number and description. The first four are integers. The last is a string. If the function returns FALSE, PHP generates an ordinary error message. 如果成功则返回 TRUE,失败则返回 FALSE。
![]()
20-Jun-2003 05:23
You can check for Showplan messages using this callback. Showplan message numbers go from 6201 through 6292 (at least here, on SQL Server/11.0.3.3). | ![]() | ||