简体   繁体   English

在SQL Server 2005 Express Edition中启用TCP

[英]enable TCP in SQL server 2005 express edition

sorry for answer but how to enable TCP in SQL server 2005 express edition? 很抱歉回答,但是如何在SQL Server 2005 Express Edition中启用TCP? I used configuration manager, find network configuration/protocols and there enabled TCP, after that I have restarted sql server service and tried installation of problematic software again (software which told me that TCP is not enabled) but I have the same problem :-( 我使用配置管理器,找到网络配置/协议,并启用了TCP,此后,我重新启动了sql server服务,并再次尝试安装有问题的软件(告诉我未启用TCP的软件),但是我有同样的问题:-(

In Sql Server Configuration Manager. 在Sql Server配置管理器中。

  1. Sql Server Network Configuration > Protocols for SQLEXPRESS SQL Server网络配置> SQLEXPRESS的协议
  2. Select TCP/IP 选择TCP / IP
  3. Protocol Tab, Change Enabled 协议选项卡,启用更改
  4. IP Address Tab, Section IPALL set the TCP Port to 1433 IP地址选项卡的IPALL部分将TCP端口设置为1433
  5. Restart Service. 重新启动服务。

To verify that it works, go to cmd 要验证它是否有效,请转到cmd

> netstat -an

and you will see 你会看到

...
TCP    0.0.0.0:1433           0.0.0.0:0              LISTENING
...

Then try on cmd 然后试穿cmd

> sqlcmd -U sa -S .\sqlexpress,1433

And you will be connected...hope so 你会被连接起来...希望如此

*Remember to enable and start the Sql Server Browser Service *记住要启用并启动Sql Server Browser服务

Source 资源

You can connect to SQL2005 Express edition over TCP/IP. 您可以通过TCP / IP连接到SQL2005 Express版本。

Did you open 1433 port on your firewall? 您是否在防火墙上打开了1433端口? Server should accept incoming connections on 1433 port. 服务器应在1433端口上接受传入连接。

After that enable TCP/IP in SQL Server 2005 Surface area configuration utility (see MSSQLSERVER > Database Engine > Local and remote connections > Using TCP/IP only) 之后,在SQL Server 2005外围应用配置器中启用TCP / IP(请参阅MSSQLSERVER>数据库引擎>本地和远程连接>仅使用TCP / IP)

In express edition the TCP support is disabled, although you see the corresponding configuration. 在快速版中,尽管看到了相应的配置,但TCP支持被禁用。 Either buy a commercial version of use another RDBMS. 可以购买使用另一个RDBMS的商业版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM