Linux to SQL Connection

Alan Taylor
Alan Taylor used Ask the Experts™
We have a Debian 7 Linux Server that we would like to connect to a Windows Server 2016 running SAGE 200 with SQL Server 2016 we have the management studio tools installed as well.  We have created a basic php script to allow the linux box access into the SAGE data tables but the linux box cannot connect to the SAGE Server at all.  The firewall is disabled on the windows server at present but we are still unable to connect.  Any ideas?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
nociSoftware Engineer
Distinguished Expert 2018

There are MSSQL drivers for PHP:  please check this one.
At least for MSSQL 2000, 2005, 2008

FreeTDS might be an option as well, described here.
This information from Microsoft regarding PHP and SQL server may also prove useful
David FavorFractional CTO
Distinguished Expert 2018

Couple of suggestions to keep your life simple, if possible...

1) Change over to running Ubuntu Bionic (LTS w/5 year support).

2) Setup to use the latest stable PPAs, so you end up running latest LAMP Stack code... as of today, versions are...


Open in new window

If you start with latest stable code, you'll avoid dealing with bugs which have already been fixed.
ICT Manager
Thank you all very much for the assistance but we have now resolved the issue.  

Sometimes you can't legislate for not receiving the correct information regarding credentials required for accessing the SQL databases!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial