Unable to connect to msSQL database via PHP

前端 未结 9 447
余生分开走
余生分开走 2021-01-13 07:30

I am using the current code in attempt to access a msSQL 2005 db:



        
9条回答
  •  太阳男子
    2021-01-13 08:30

    I had some difficulties with this a few months ago, and I found that the only way to make it work was to include the instance name when specifying the server. For example:

    $myServer = "SERVER\INSTANCENAME";
    

    Specifying just the server would not work, even with TCP/IP enabled.

提交回复
热议问题