Created
June 1, 2018 13:20
-
-
Save adamtester/2cd93bf2c1e0aac74074923ec9943a84 to your computer and use it in GitHub Desktop.
Force SQL Server connection using odbc instead of dblib in laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a DSN string from a configuration. | |
* | |
* @param array $config | |
* @return string | |
*/ | |
protected function getDsn(array $config) | |
{ | |
// First we will create the basic DSN setup as well as the port if it is in | |
// in the configuration options. This will give us the basic DSN we will | |
// need to establish the PDO connections and return them back for use. | |
return $this->getSqlSrvDsn($config); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment