SQL Server 2005 connection timeout using bat command to resolve _mssql2005

Source: Internet
Author: User
Save the following as Opensql.bat double-click to run
Copy Code code as follows:

@echo ========= SQL Server Ports ===================
@echo Enabling SQL Server default instance port 1433
netsh firewall set portopening TCP 1433 "SQL Server"
@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 "HTTP"
@echo Enabling SSL port 443
netsh firewall set portopening TCP 443 "SSL"
@echo enabling port for SQL Server Browser Service ' 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.