SugarCRM 7.9.0.1 unable to connect to SQL Server 2014 database!

Hi Guys,

I am unable to connect SQL Server 2014 database from SugarCRM.

I have sugarCRM installed on one instance (Web Server) and database is present on another instance (Database server). When I try to open the login page i.e. http://localhost/sugarcrm/index.php, I am getting the following error :

Here is my config.php  file:

Here is the sugarcrm.log :

But, I was able to successfully connect database using a simple php script. Please help!!