How to use SQL Server connection in Laravel?

后端 未结 4 1511
悲&欢浪女
悲&欢浪女 2020-12-03 05:01

I got a working project made in Laravel 3 that I have to switch to MsSQL Server (not my call though, sniff...) and I don\'t understand the Laravel configuration on this data

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 05:42

    Ahh after a lot more research, I found out that my driver of SQL Server Native Client 10.0 was out of date and not sufficient to connect to a MsSQL Server 2008 with PDO, you need to have at least version 11.0 in order to connect to an SQL Server 2005+

    If you want to validate your driver version, you can go through Control Panel >> Administrative Tools >> Data Sources (ODBC) and then click on the Drivers tab to find out which SQL Server Native Client you have already installed. If you want to update your driver, depending on your OS configuration you may choose the proper link below...

    SQL Server 2012 Native Client
    x86 (32 bits) Package http://go.microsoft.com/fwlink/?LinkID=239647&clcid=0x409
    x64 (64 bits) Package http://go.microsoft.com/fwlink/?LinkID=239648&clcid=0x409

提交回复
热议问题