We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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.



98.9k
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: https://www.airaghi.net/en/2014/12/29/phalconphp-sql-server-connector/