douxie7339 2013-09-18 10:08
浏览 123

CDbConnection无法打开数据库连接

I found lots of answers about this question and it is asked in stackoverflow as well, but that answers do not solve my problem.

The method they are telling in the forums and Q/A websites to connect PHP with MS SQL Server, I am using the same but I am getting the following error in YII Framework

CDbConnection failed to open the DB connection: SQLSTATE[IMSSP]: This extension requires the Microsoft SQL Server 2012 Native Client ODBC Driver to communicate with SQL Server. Access the following URL to download the Microsoft SQL Server 2012 Native Client ODBC driver for x86: http://go.microsoft.com/fwlink/?LinkId=163712

  • I have installed the Microsoft SQL Server 2012 Native Client ODBC driver from the given link above.
  • I have included the following lines in php.ini

extension=php_sqlsrv_54_ts.dll

extension=php_pdo_sqlsrv_54_ts.dll

  • I have save the above dlls in php/ext folder.

But still I am getting this error. Moreover I have also made a System DSN in ODBC Data Source Administrator in Administrative Tools in Windows.

But I didn't found the solution of my problem.

Please help me out to solve this problem.

Thanks!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器