Yii Framework Forum

Yii2 With SQL Server - Model Generator Error

(thaer.aliat) #1


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

(Wilson) #2

I think it was same problem here.

but already solved. try to update your yii2 version

(Alexander Makarov) #3

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