Yii2 With SQL Server - Model Generator Error


I need to generate a models and CRUD using yii2 Gii with sql server database tables , but when i am trying to generate model, yii2 return the following error, so how can i solve this problem please.

Database Exception – yii\db\Exception SQLSTATE[42S02]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid object name ‘dbo.INFORMATION_SCHEMA.KEY_COLUMN_USAGE’.

Thanks in advance

I think it was same problem here.

but already solved. try to update your yii2 version

Seems it’s fixed in Yii What version you have problem with?

How to generate CRUD with MSSQL?