Search code examples
phpsql-serveryiidatabase-connection

Connect SQL Server with Yii framework


I get this error when trying to use Yii framework with SQL Server 2019

enter image description here

I heard many people had this problem before so I installed the SQL Server drivers for PHP 7

enter image description here

PHP.ini:

enter image description here

And this is my php info:

enter image description here

The connection string:

enter image description here

I am using XAMPP server for running the application. Can somebody help me with my problem?

Edit: Removed the semicolons and got this

enter image description here enter image description here

enter image description here


Solution

  • Remove semi colon with sqlsrv_7 extensions in .ini file Restart server