sqlserver 2005连接超时采用bat命令解决
网络编程 2021-07-05 16:33www.168986.cn编程入门
sqlserver 2005 连接超时会导致很多依赖于它的程序无法正常方法,多么悲催的一件事前啊,本文的出现将解决你的燃眉之急,感兴趣的你可不要错过了哈
将以下内容保存为 openSql.bat 双击运行即可
@echo ========= SQL Server Ports ===================
@echo Enabling SQLServer default instance port 1433
sh firewall set porening TCP 1433 "SQLServer"
@echo Enabling Dedicated Admin Connection port 1434
sh firewall set porening TCP 1434 "SQL Admin Connection"
@echo Enabling conventional SQL Server Service Broker port 4022
sh firewall set porening TCP 4022 "SQL Service Broker"
@echo Enabling Transact-SQL Debugger/RPC port 135
sh firewall set porening TCP 135 "SQL Debugger/RPC"
@echo ========= Analysis Services Ports ==============
@echo Enabling SSAS Default Instance port 2383
sh firewall set porening TCP 2383 "Analysis Services"
@echo Enabling SQL Server Browser Service port 2382
sh firewall set porening TCP 2382 "SQL Browser"
@echo ========= Misc Applications ==============
@echo Enabling HTTP port 80
sh firewall set porening TCP 80 "HTTP"
@echo Enabling SSL port 443
sh firewall set porening TCP 443 "SSL"
@echo Enabling port for SQL Server Browser Service's 'Browse' Button
sh firewall set porening UDP 1434 "SQL Browser"
@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
sh firewall set multicastbroadcastresponse ENABLE
代码如下:
@echo ========= SQL Server Ports ===================
@echo Enabling SQLServer default instance port 1433
sh firewall set porening TCP 1433 "SQLServer"
@echo Enabling Dedicated Admin Connection port 1434
sh firewall set porening TCP 1434 "SQL Admin Connection"
@echo Enabling conventional SQL Server Service Broker port 4022
sh firewall set porening TCP 4022 "SQL Service Broker"
@echo Enabling Transact-SQL Debugger/RPC port 135
sh firewall set porening TCP 135 "SQL Debugger/RPC"
@echo ========= Analysis Services Ports ==============
@echo Enabling SSAS Default Instance port 2383
sh firewall set porening TCP 2383 "Analysis Services"
@echo Enabling SQL Server Browser Service port 2382
sh firewall set porening TCP 2382 "SQL Browser"
@echo ========= Misc Applications ==============
@echo Enabling HTTP port 80
sh firewall set porening TCP 80 "HTTP"
@echo Enabling SSL port 443
sh firewall set porening TCP 443 "SSL"
@echo Enabling port for SQL Server Browser Service's 'Browse' Button
sh firewall set porening UDP 1434 "SQL Browser"
@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
sh firewall set multicastbroadcastresponse ENABLE
编程语言
- 甘肃哪有关键词排名优化购买方式有哪些
- 甘肃SEO如何做网站优化
- 河南seo关键词优化怎么做电话营销
- 北京SEO优化如何做QQ群营销
- 来宾百度关键词排名:提升您网站曝光率的关键
- 卢龙关键词优化:提升您网站排名的策略与技巧
- 山东网站优化的注意事项有哪些
- 四川整站优化怎样提升在搜索引擎中的排名
- 疏附整站优化:提升网站性能与用户体验的全新
- 海南seo主要做什么工作售后服务要做到哪些
- 荣昌百度网站优化:提升您网站的搜索引擎排名
- 河北seo网站排名关键词优化如何做SEO
- 江西优化关键词排名推广售后保障一般有哪些
- 古浪SEO优化:提升你的网站可见性
- 西藏网站排名优化怎么把网站排名在百度首页
- 如何提升阳东百度快照排名:详尽指南