New PDO driver for SQL Server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • \Chung Leong\

    New PDO driver for SQL Server

    I have created a PDO driver for SQL Server based on OLE-DB. The new
    driver is capable of doing things that the ancient DBLIB can't. First
    and foremost, you can retrieve varchar wider than 256 chars. You can
    also retrieve NVARCHAR columns in a variety of encoding (UTF-8 being
    the key one). It supports parameter binding and blobs as streams. In a
    word, it's much better than the one that the PHP web site tell you not
    to use.

    The file is hosted here:

    Wapache is a software that lets you create desktop application using web development technology like Perl and PHP. It combines a modified version of…


    While the documentation is here:



    Enjoy!
  • Erwin Moller

    #2
    Re: New PDO driver for SQL Server

    "Chung Leong" schreef:
    I have created a PDO driver for SQL Server based on OLE-DB. The new
    driver is capable of doing things that the ancient DBLIB can't. First
    and foremost, you can retrieve varchar wider than 256 chars. You can
    also retrieve NVARCHAR columns in a variety of encoding (UTF-8 being
    the key one). It supports parameter binding and blobs as streams. In a
    word, it's much better than the one that the PHP web site tell you not
    to use.
    >
    The file is hosted here:
    >
    Wapache is a software that lets you create desktop application using web development technology like Perl and PHP. It combines a modified version of…

    >
    While the documentation is here:
    >

    >
    Enjoy!
    Thanks Chung!

    By the way: Do you know when the new driver from Microsoft for SQL
    Server will be available?

    The one that is announced here:


    Will it be smarter to use your PDO driver instead?

    Regards,
    Erwin Moller

    Comment

    • \Chung Leong\

      #3
      Re: New PDO driver for SQL Server

      On May 5, 6:56 pm, Erwin Moller
      <Since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
      "Chung Leong" schreef:
      >
      >
      >
      >
      >
      I have created a PDO driver for SQL Server based on OLE-DB. The new
      driver is capable of doing things that the ancient DBLIB can't. First
      and foremost, you can retrieve varchar wider than 256 chars. You can
      also retrieve NVARCHAR columns in a variety of encoding (UTF-8 being
      the key one). It supports parameter binding and blobs as streams. In a
      word, it's much better than the one that the PHP web site tell you not
      to use.
      >
      The file is hosted here:
      >>
      While the documentation is here:
      >>
      Enjoy!
      >
      Thanks Chung!
      >
      By the way: Do you know when the new driver from Microsoft for SQL
      Server will be available?
      >
      The one that is announced here:http://www.microsoft.com/sql/technol...p/default.mspx
      >
      Will it be smarter to use your PDO driver instead?
      >
      Regards,
      Erwin Moller- Hide quoted text -
      >
      - Show quoted text -
      I don't know when it'll get out of CTP status, if that's what you're
      asking.

      I don't really understand why Microsoft didn't go with using PDO.
      That's the main reason I decided to roll my own. Our team is moving to
      PHP5 and the DBLIB PDO drivier is sort of problematic. I also have
      most of the code written already from a previous effort.

      In theory, going through the native driver would yield better
      performance. On the other hand, the OLE-DB infrastructure gives you
      connection pooling. It probably just comes down to whether you want to
      use PDO or not. I have to say though, since we'll be using this
      ourselves, a bug would certainly get fixed very quickly.

      Comment

      Working...