I am using
1- Windows Server 2012 R2
2- SQL Server 2014
3- Codeigniter 3.1
4- PHP 5.6
5- php_sqlsrv_56_ts.dll
I get this error sometimes:
An uncaught Exception was encountered
Type: RuntimeException
Message: Unable to connect to the database.
Filename: C:\wed\wed\system\database\DB_driver.php Line Number: 433
Backtrace:
File: C:\wed\wed\web\application\core\MY_Controller.php Line: 10
Function: __construct
File: C:\wed\wed\web\application\controllers\sanjeh.php Line: 12
Function: __construct
File: C:\wed\wed\web\index.php Line: 317
Function: require_once