doutenglou6588
2019-03-21 20:06
采纳率: 0%
浏览 39
已采纳

PHP中Microsoft SQL Server的连接参数

I'm trying to connect to Microsoft SQL Server with PHP

To work with a mirrored database in the sql management studio I use "ApplicationIntent=ReadOnly" in the "Additional Connection Parameters" label.

How can I set this parameter in php?

Example of how I'm connection without the parameter:

$serverName = "server, port";
$connectionInfo = array( "Database"=>"my_db");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题