PHP PDO Connect to Advantage Database SQL Server

2019-06-07 18:27发布

问题:

Our EMR software uses Advantage Database SQL server as its database and I'm creating various PHP projects which require interaction with this database.

What is the best approach to connecting and working with Advantage DB SQL and PHP? I'd like to connect on a read-only level to prevent any data wrong-doing with insurance/patient/provider records.

Note: I connect to other databases using PDO drivers. Is there an Advantage DB driver for PDO that I'm unaware of?

Server info: PHP, Windows 2008, IIS 7

回答1:

PHP PDO support is slated for release in v11.0 of Advantage later this summer. It is listed on our user voice feature request site here: PDO feature request.

You can view our PHP documentation online on our developer zone website here: PHP Documentation.



回答2:

On the features page for the product, they list an ODBC connector under the "Servers & Clients" section.

It happens that PDO can speak ODBC. This is probably your best bet.

They also have a separate PHP extension, however they're hiding it being a registration wall and the documentation does not seem to be public. Whether it includes a PDO driver is not stated.