一个PDA & SQL SERVER的系统,数据库安装在WINXP上,PDA的数据库连接测试一直失败,总是出错:ConnectionOpen (Connect()而数据库安装在WIN2000/WIN2003的都可以。我该打的补丁也补了,还是不行。搜索了许多网页,认真看了:
http://topic.csdn.net/t/20050720/18/4157351.html
这个帖子。最终找到了原因,如大家所指的,就是1433无开放,外面根本找不到SQLSERVER对外的这个端口,这个在WINXP上的SQLSERVER根本没有在监听!我折腾了那么多天,就是这个1433没启动,汗~~

现在我启动WINXP上的SQL SERVER MANAGER,连接MSDE SP3,在SQL SERVER组下,找到本机,右键属性,点击“网络配置”(Network Configuration),会看到右侧“启动的协议”中,什么都没有,将“禁用的协议”中的TCP/IP 启用(这时TCP/IP会列在右边的“启用的协议”中),按确定,重启服务,就OK了。

Tags: , ,

This entry was posted on Tuesday, April 8th, 2008 at 4:47 pm and is filed under 代码编程. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One comment

theo
 1 

cmd 下,使用命令:

telnet 192.168.1.1 1433

如果连接成功,则黑屏,无显示信息;否则显示连接错误。

April 17th, 2008 at 4:37 pm

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment