Mylo Zauberer Wed Dec 27 16:54:14 -0500 2017

Subject: SqlSrv Adapter

I am having difficulty making the connection to sqlserver work.
Out of phpactiverecord I can connect and list data, but when I make the connection as it says the manual it does not work. (I can not use the commands such as Model :: find (1))

Has anyone been through this and can you help me?

Down as I'm making the connection

         $ cfg = \ ActiveRecord \ Config :: instance ();
         $ cfg-> set_model_directory ('models /');
         $ cfg-> set_connections (array ('development' =>
             'sql: //'. $ this-> user. ':'. $ this-> password. '@'. $ this-> connection. '/'. $ this-> database. '; charset = utf8'));

I downloaded the adapter and added the lib folder just like the link

I thank the attention

David Culbreth Wed Mar 07 02:38:54 -0500 2018

I've got a version passing tests on several php builds. Really just a straight merge from the fork you just linked and the original repo.

According to, it's working on PHP versions 5.4, 5.5, 5.6, 7.0, 7.1 as of the writing of this reply.

Let me know how you fare, I'll see if I can coax some backwards/forwards compatability out of it over the summer.

David Culbreth Wed Mar 07 02:39:10 -0500 2018

Right, a link would be useful.