开发者

SQL Server Driver for PHP sqlsrv_connect() Filling PHP Error Log with Ignored Errors

开发者 https://www.devze.com 2023-02-21 01:50 出处:网络
Every time my PHP application connects to my SQL Server database, the following gets put into the PHP error log:

Every time my PHP application connects to my SQL Server database, the following gets put into the PHP error log:

[01-Apr-2011 12:39:16] sqlsrv_connect: SQLSTATE = 01000
[01-Apr-2011 12:39:16] sqlsrv_connect: error code = 5701
[01-Apr-2011 12:39:16] sqlsrv_connect: message = [Microsoft][SQL Se开发者_运维问答rver Native Client 10.0][SQL Server]Changed database context to 'my_table_name'.
[01-Apr-2011 12:39:16] sqlsrv_connect: SQLSTATE = 01000
[01-Apr-2011 12:39:16] sqlsrv_connect: error code = 5703
[01-Apr-2011 12:39:16] sqlsrv_connect: message = [Microsoft][SQL Server Native Client 10.0][SQL Server]Changed language setting to us_english.
[01-Apr-2011 12:39:16] error ignored

How can I suppress this error? It doesn't appear to be a PHP error as it doesn't have a severity such as Notice/Warning/etc.


I suppose you could use the sqlsrv_configure() function, to change the error reporting and/or logs settings.

See also :

  • Logging Activity
  • Configure Error and Warning Handling Using the SQLSRV Driver
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号