MSSQL with Yii2 Gii model genrating problem

I am using SQL sever 2008 R2 in my yii2 Project. I have made connection using odbc. I get table names in my gii model with square bracket. I remove square brackets and do model then I got error.So I cant do model of my table. Following error show me

Caused by: PDOException

SQLSTATE[HY010]: Function sequence error: 0 [Microsoft][ODBC Driver Manager] Function sequence error (SQLExecute[0] at ext\pdo_odbc\odbc_stmt.c:258)

in E:\wamp64\www\patsanstha\vendor\yiisoft\yii2\db\Command.php at line 1293

Please tell me how solve this error.

Sir, Thanks for Replying,
I am new and I cant clear understand how solve the problem with your given link and suggestion so please tell me experimentally.