I setup Ubuntu 16.04 LTS server and having trouble getting PHP 7.0 to connect to MS SQL Server through PDO.
I want to connect using the PDO class using sqlsrv as the database driver type (not using dblib/FreeTDS drivers or any non PDO method of connecting, such as mssql_connect).
I followed this article with errors and feel like I almost completed the process, but need someone with more knowledge to get it working. It's not necessary to follow this article, please do it your own way if necessary.
[login to view URL]
When I try to construct PDO and connect I received the error:
" PDOException: could not find driver ".
I know my code is not the issue as it's worked reliably using sqlsrv on Windows and dblib on Ubuntu.
The deliverable on this will be:
[login to view URL] step by step instructions on how to get it working on a fresh install of Ubuntu 16.04 LTS, using only minimal amount of installed software (e.g. apache, php 7.0, necessary drivers). So that I can use the same instructions to get it working on my server. A simple PHP script showing successful connection like this:
$c = new PDO("sqlsrv:Server=localhost;Database=testdb", "UserName", "Password");
I can provide root access to a clean Ubuntu install for a few days if required.
6 freelancer đang chào giá trung bình $31 cho công việc này
Hey! I am interested in your [login to view URL] send me so that we can discuss more! Relevant Skills and Experience I have fully skill in this work as you need.