Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

How to connect to sql server?

Hello, I would like to know how I can do to connect to SQL SERVER with Phalcon 1.3.4.

Is there a plugin for this version of framework? O What will exist for version 2?

Thank you.



81.1k
Accepted
answer

Phalcon does not support SQL Server at this moment. Maybe this could work for you: https://github.com/fishjerky/phalcon-mssql

I had some problem using the above classes with pdo_sqlsrv, so i extended them. You can find all the code here: http://www.airaghi.net/en/2014/12/29/phalconphp-sql-server-connector/