Hi everyone, How Can I configure My Phalcon's code to communicate with Sql Server 2008 ? P.S. I use Sql dialect into My models files. Thanx.
|
Oct '15 |
4 |
1023 |
0 |
I had same problem before and I solved it by merging Phalcon
as my app skeleton and Zend_Db for database handling.
install pdo_dblib
and mssql
modules in linux or Microsoft sql sever driver
from https://msdn.microsoft.com/en-us/library/cc296172(v=sql.105).aspx for windows
then add zend-db to your composer.json
"require": {
"zendframework/zend-db": "2.*",
}
the initialize Zend DB and start your project ;)
Hi there,
Just wondering how you managed to get this working with Models? Do you have any sample code at all? I've tried using this adapter https://github.com/fishjerky/phalcon-mssql but it did not work so I want to try your method of using the Zend framework
Cheers, Dan
you can try a dialect+adapter i wrote: http://www.airaghi.net/en/2015/08/10/phalconphp-2.0.x-sql-server-connector
it supports select, update, insert and delete ...