Problem/Motivation
Some servers require additional config options to be supplied in order to connect correctly, for example high availability clusters with with multi-subnet failover which need the MultiSubnetFailover=1 option.
Proposed resolution
Add support for all sqlsrv specific options using a similar approach to Laravel's SqlServerConnector::getSqlSrvDsn with config options being defined in underscore case in the settings.php array.
Issue fork sqlsrv-3291464
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pstewart commentedSlight tweak to the issue summary to reflect that
MultiSubnetFailover=yesshould in fact beMultiSubnetFailover=1to actually work.I've now pushed a patch which ports over the option setting code from the Laravel connector to allow
multi_subnet_failoverand other options to be set insettings.phpin the same way as they would be specified in a Laravelconfig/database.phpconfig array. This is working as intended for my use case, allowing me to connect to a production SQL Server 2017 high availability cluster with multi-subnet failover. I'll open a merge request now.Comment #4
pstewart commentedComment #6
pstewart commented