简体   繁体   English

如何在symfony2中使用sql server 2008?

[英]how can i use sql server 2008 in symfony2?

hi i installed sqlsrv drive in my php/ext/ and i use php 5.4.16 and i use sql server 2008 in my laptop but when i execute the symfony2 commande doctrine:mapping:import" AssuranceCarteBundle" an error is displayed and this is the error text : 您好,我在我的php / ext /中安装了sqlsrv驱动器,并且我使用php 5.4.16,并且在我的笔记本电脑中使用了sql server 2008,但是当我执行symfony2 commande doctrine:mapping:import“ AssuranceCarteBundle”时 ,将显示错误消息,这是错误文字:

[PDOException] [PDOException]
SQLSTATE[IMSSP]: This extension requires the Microsoft SQL Server 2012 Native Client ODBC Driver to communicate with SQL Server. SQLSTATE [IMSSP]:此扩展要求Microsoft SQL Server 2012本机客户端ODBC驱动程序与SQL Server通信。 Access the following 访问以下内容
URL to download the Microsoft SQL Server 2012 Native Client ODBC driver for 用于下载Microsoft SQL Server 2012本机客户端ODBC驱动程序的URL
x86: http://go.microsoft.com/fwlink/?LinkId=163712 x86: http//go.microsoft.com/fwlink/?LinkId = 163712

I don't know why he said this because I don't use sqlserver 2012 and i need to use sql server 2008 how can i resolve this problem please?! 我不知道他为什么这么说,因为我不使用sqlserver 2012,而我需要使用sql server 2008,我该如何解决这个问题? thanks 谢谢

在此处输入图片说明

如果驱动程序可用,则应将数据库驱动程序的配置放置在parameters.yml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM