Home  >  Article  >  Backend Development  >  PHP5.2怎么连接SQL SERVER 2000

PHP5.2怎么连接SQL SERVER 2000

WBOY
WBOYOriginal
2016-06-13 13:20:02915browse

PHP5.2如何连接SQL SERVER 2000
我现在要在Win2k中,使用PHP连接SQL SERVER2000(IIS)

之所以要用PHP5.2是因为ThinkPHP必须要PHP5.2以上版本。而 IIS方式以及SQL Server2000 都是必须的。。

我查了很多资料都无法解决问题。


求高人指点一二

------解决方案--------------------
HP5.2 连接SQL SERVER 2000 使用php_mssql 扩展
用法与 php_mysql 扩展基本一致

但是 ThinkPHP 虽然声称它支持多种数据库,但实际上只支持 mysql。因为他在从表创建mode时,使用了只有 mysql 才有的获取列信息的 SQL 指令。而其他数据库都没有等价的指令,需写存储过程才行
当然你也可以比照从 mysql 中产生的类来手工书写。记住,千万别搞错哟

Statement:
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