-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect to SQL Server database on a specified port. #624
Comments
This is included in upcoming 5.21.0 release, see #314 |
Yes, that is true for ADODB_mssql, but I can't see it in ADODB_mssqlnative. Regards |
Right, sorry... So not a duplicate then. @mnewnham as I don't use mssql, would appending the port number to the hostname before calling sqlsrv_connect() at line 493, like so, be sufficient ? if (!empty($this->port)) {
$argHostname .= "," . $this->port;
} |
Yes, absolutely. I think I've done this before. I think I've not done anything official because unlike most connections , its server,port instead of server:port. It doesn't appear to be a widely used option either. |
Enhancement allows use of a specfic database connection port
… … Enhancement allows use of a specfic database connection port
Will appear in 5.20.19 |
The port information is missing.
One will need to set the port - if anything else than standard.
Something like this in the function ADODB_mssqlnative::_connect()
if (!empty($this->port)) { $argHostname .= ", $this->port"; }
Regards
The text was updated successfully, but these errors were encountered: