PHP PDO Connect to Advantage Database SQL Server

别等时光非礼了梦想. 提交于 2019-12-23 01:10:20

问题


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.



来源:https://stackoverflow.com/questions/8994158/php-pdo-connect-to-advantage-database-sql-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!