All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
javascript应用实例:网页折叠菜单_JavaScript技术_编程技术
Sql,Server数据库定时自动备份_[SQL,Server教程]
初学者接触HTML了解一些HTML标记(3)_[Html教程]
PHP技巧:PHP脚本中关于拼写检查函数库_php资料_编程技术
asp.net2.0中Crystal报表区域介绍
ajax+php无刷新二级联动下拉菜单(省市联动)源码_[PHP教程]
ASP.NET实例:多文件上传源码_[Asp.Net教程]
ADO.NET查询数据库中数据
5款纯div+css制作的弹出菜单(标准且无js)_[Html教程]_0
Visual,C#,2005快速入门之编写方法_[Asp.Net教程]
Reading number is top 10 pictures
Soong ching ling's former residence2
The money of more than 100 countries and regions9
西游日记2
a pure sister
星星命名法则
Fat bird to fly
Very beautiful interior decoration
中国女孩大胆自拍,显露完美身材4
教你22句话
The money of more than 100 countries and regions3
Download software ranking
Boxer's Top ten classic battle2
SQL2000 For 4IN1
Twenty piece of palm leaf
Boxer's Top ten classic battle5
C++教程第四版
Tram sex maniac 2 (H) rar bag19
asp.netWeb服务器高级编程
Ashlynn Video1
Be there or be square
虚拟机汉化软件
delv published in(发表于) 2013/12/29 4:40:23 Edit(编辑)
PHP5.2.3连接,SQLSERVER,注意事项_php资料_编程技术

PHP5.2.3连接,SQLSERVER,注意事项_php资料_编程技术

PHP5.2.3连接 SQLSERVER 注意事项_php资料_编程技术-你的首页-uuhomepage.com
1. 首先按通常做法配置好PHP5连接MS SQL Server

2. 下载正确版本的 ntwdblib.dll (2000.80.194.0)

3. 覆盖 apache2.2.6\bin\ntwdblib.dll

4. 覆盖 php5.2.5\ntwdblib.dll

5. 运行 SQL Server 配置管理器:SQL Server Configuration Manager,打开协议 Protocols

6. 允许命名管道 "named pipes" 和 "tcp/ip"

7. 右键点击 "tcp/ip",打开属性 Properties 标签 "IP addresses"

8. 在 TCP 动态端口 "TCP Dynamic Ports" 填入 1433

9. 重启 SQL Server、Apache和PHP

使用以下方式连接MS SQL Server 2005:

mssql_connect('localhost,1433', USERNAME, PASSWORD);



-----------------------------------------------------------------------------------------------





常见问题:mssql_connect() Unable to connect to server



确认SQLServer2005服务器正常.检查 TCP/IP已经启用



同时右键查看属性:



已经启用是否选择是



确认服务器正确之后,再确认ntwdblib.dll 文件位置是否放到了 c:\windows\system32下



同时要保证ntwdblib.dll 这个文件的版本和sqlserver的版本对应:



下面是对应关系:



2.ntwdblib.dll 版本为 2000.2.8.0 是 对应 SqlServer2000(这个是网络查资料和猜测,没装2000)



2.ntwdblib.dll 版本为 2000.80.194.0 是 对应 SqlServer2005(这个是用实验证明可以用,本人就是用笔记本装了2005)



3.ntwdblib.dll 版本为 2000.80.2039 是 对应 SqlServer2008(这个是猜测没有装2008)




配置php



1、打开php.in将extension=php_mssql.dll的注释符号去掉。



2、打开php.in将mssql.secure_connection = Off。



3、将php_mssql.dll拷贝到php.in中extension_dir 指定的目录或者系统system32目录下。(php_mssql.dll在php压缩安装包中有)。




添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.