Answer the question
In order to leave comments, you need to log in
yii + mssql. Russian language in the names of tables and fields, how to cure?
I'm connecting now
'db' => array(
'class' => 'application.components.db.RDbConnection',
'commandClass' => 'application.components.db.RDbCommand',
'connectionString' => 'dblib:host=******;dbname=testdb',
'username' => '*******',
'password' => '*******',
'tablePrefix' => '',
'schemaCachingDuration' => YII_DEBUG ? 0 : 1000,
),
CDbCommand не удалось исполнить SQL-запрос: SQLSTATE[HY000]: General error: 102 General SQL Server error: Check messages from the SQL Server [102] (severity 15) [(null)]. The SQL statement executed was: SELECT TOP 10 * FROM testdb.dbo.сотрудники
$sql = 'SELECT TOP 10 * FROM testdb.dbo.сотрудники';
$data = Yii::app()->db->createCommand($sql)->queryAll();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question