sqlserver 2005连接超时采用bat命令解决
更新时间:2013年02月18日 17:22:25 作者:
sqlserver 2005 连接超时会导致很多依赖于它的程序无法正常方法,多么悲催的一件事前啊,本文的出现将解决你的燃眉之急,感兴趣的你可不要错过了哈
将以下内容保存为 openSql.bat 双击运行即可
@echo ========= SQL Server Ports ===================
@echo Enabling SQLServer default instance port 1433
netsh firewall set portopening TCP 1433 "SQLServer"
@echo Enabling Dedicated Admin Connection port 1434
netsh firewall set portopening TCP 1434 "SQL Admin Connection"
@echo Enabling conventional SQL Server Service Broker port 4022
netsh firewall set portopening TCP 4022 "SQL Service Broker"
@echo Enabling Transact-SQL Debugger/RPC port 135
netsh firewall set portopening TCP 135 "SQL Debugger/RPC"
@echo ========= Analysis Services Ports ==============
@echo Enabling SSAS Default Instance port 2383
netsh firewall set portopening TCP 2383 "Analysis Services"
@echo Enabling SQL Server Browser Service port 2382
netsh firewall set portopening TCP 2382 "SQL Browser"
@echo ========= Misc Applications ==============
@echo Enabling HTTP port 80
netsh firewall set portopening TCP 80 "HTTP"
@echo Enabling SSL port 443
netsh firewall set portopening TCP 443 "SSL"
@echo Enabling port for SQL Server Browser Service's 'Browse' Button
netsh firewall set portopening UDP 1434 "SQL Browser"
@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
netsh firewall set multicastbroadcastresponse ENABLE
复制代码 代码如下:
@echo ========= SQL Server Ports ===================
@echo Enabling SQLServer default instance port 1433
netsh firewall set portopening TCP 1433 "SQLServer"
@echo Enabling Dedicated Admin Connection port 1434
netsh firewall set portopening TCP 1434 "SQL Admin Connection"
@echo Enabling conventional SQL Server Service Broker port 4022
netsh firewall set portopening TCP 4022 "SQL Service Broker"
@echo Enabling Transact-SQL Debugger/RPC port 135
netsh firewall set portopening TCP 135 "SQL Debugger/RPC"
@echo ========= Analysis Services Ports ==============
@echo Enabling SSAS Default Instance port 2383
netsh firewall set portopening TCP 2383 "Analysis Services"
@echo Enabling SQL Server Browser Service port 2382
netsh firewall set portopening TCP 2382 "SQL Browser"
@echo ========= Misc Applications ==============
@echo Enabling HTTP port 80
netsh firewall set portopening TCP 80 "HTTP"
@echo Enabling SSL port 443
netsh firewall set portopening TCP 443 "SSL"
@echo Enabling port for SQL Server Browser Service's 'Browse' Button
netsh firewall set portopening UDP 1434 "SQL Browser"
@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
netsh firewall set multicastbroadcastresponse ENABLE
相关文章
SQLServer2005安装提示服务无法启动原因分析及解决
安装时出现了如下错误:SQL Server 2005 安装错误码29503,接下来讲解一下,错误原因及解决方法,感兴趣的你可以参考下,或许对你有所帮助2013-03-03详解删除SQL Server 2005 Compact Edition数据库
这篇文章主要介绍了详解删除SQL Server 2005 Compact Edition数据库的相关资料,需要的朋友可以参考下2017-06-06基于SQL2005 SQL2008 表结构信息查询升级版的详解(含外键信息)
本篇文章是对SQL2005 SQL2008 表结构信息查询升级版(含外键信息)进行了详细的分析介绍,需要的朋友参考下2013-06-06SQL 2005使用专用管理员连接(DAC)的技巧及修改系统表的方法
SQL Server 2005 为管理员提供了一种特殊的诊断连接,以供在无法与服务器建立标准连接时使用。2011-07-07SQL Server 2005 中使用 Try Catch 处理异常
本文主要对比了Sql Server 2000和Sql Server 2005对异常处理的方法,Sql Server 2005 之后的TRY CATCH捕捉异常,更类似C#、JAVA等语言,更容易被程序员理解。2016-05-05
最新评论