dongmuyan5638 2010-02-23 22:30
浏览 64
已采纳

PHP ORM,支持SQL Server 2005

I have been looking around the current options (and related SO questions) regarding PHP ORM solutions, however I have a couple of unique requirements:

  • I am running PHP on Windows Server 2003
  • I need to interface with SQL Server 2005

I can't seem to find a simple answer from the PHP ORM solutions out there as to which (if any) support MSSQL as an adaptor option. Outlet seems to support this, for instance, but is only mentioned in passing on the documentation page, while other references say that the current version (1.0) has only been tested with MySQL.

At the moment, I am using the Microsoft PHP SQL Server driver, which as I understand it, can't be used with current ORM solutions until the driver itself supports PDO (which the team are looking into, but with no timeframe).

So what can I use today as an ORM solution on PHP for Windows that interfaces with SQL Server. Anything out there at all?

  • 写回答

1条回答 默认 最新

  • duanba5777 2010-02-23 22:38
    关注

    From Doctrine manual:

    The currently supported PDO database drivers are:

    fbsql   FrontBase
    ibase   InterBase / Firebird (requires PHP 5)
    mssql   Microsoft SQL Server (NOT for Sybase. Compile PHP --with-mssql)
    mysql   MySQL
    mysqli  MySQL (supports new authentication protocol) (requires PHP 5)
    oci     Oracle 7/8/9/10
    pgsql   PostgreSQL
    querysim    QuerySim
    sqlite  SQLite 2
    

    And PHP on Windows should ship with an appropriate extension for MSSQL for PDO. Just enable

    extension=php_pdo.dll
    extension=php_pdo_mssql.dll
    

    Propel should also support MSSQL, as it is written on top of PDO. And while not a full fledged ORM as such, Zend_Db has an adapter for MSSQL as well. The latter uses pdo-dblib though.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 图示五个参数的模型校正是用什么方法做出来的。如何建立其他模型
  • ¥100 描述一下元器件的基本功能,pcba板的基本原理
  • ¥15 STM32无法向设备写入固件
  • ¥15 使用ESP8266连接阿里云出现问题
  • ¥15 BP神经网络控制倒立摆
  • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
  • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人