Home > Backend Development > PHP Tutorial > Zend Framework怎么连接MSSQL 2005

Zend Framework怎么连接MSSQL 2005

WBOY
Release: 2016-06-13 10:04:51
Original
916 people have browsed it

Zend Framework如何连接MSSQL 2005?
谷歌百度了半天,没找到如何连接的方法。请高手教个详细的方法和步骤。谢谢

------解决方案--------------------
很简单。。。ZENDFRAMEWORK 的数据库是工厂加适配器模式 只要在工厂方法里加入相应适配器的名称就可以
$params = array('host' => '127.0.0.1', 'username' => 'root', 
'password' => 'root', 'dbname' => 'sns');
$db = Zend_Db::factory('PDO_Mssql', $params);
想查询有哪些适配器打开ZEND/DB/ADAPTER/PDO 找到类名换成PDO加类名就是相应数据库的适配器。。。。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template