Article ID: 968872 - Last Review: April 30, 2012 - Revision: 4.0 How do I open the firewall port for SQL Server on Windows Server 2008?
If you are a Small Business customer, find additional troubleshooting and learning resources at the Support for Small Business (http://smallbusiness.support.microsoft.com) site.Problem descriptionWindows Firewall on Windows Server 2008 helps prevent unauthorized access to computer resources. However, if the firewall is configured incorrectly, attempts to connect to an instance of SQL Server may be blocked.
To access an instance of SQL Server that is behind the firewall, you must configure the firewall on the computer that is running SQL Server.
This article helps you open the firewall ports for SQL Server on Windows Server 2008. To have us fix this problem for you, go to the "Fix it for me" section. If you prefer to fix this problem yourself, go to the "Let me fix it myself" section. Fix it for me To fix this problem automatically, click the
Fix this problem
link. Click
Run
in the
File Download
dialog box, and then follow the steps in this wizard.
Note this wizard may be in English only; however, the automatic fix also works for other language versions of Windows. Note if you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem. Next, go to the "Did this fix the problem?" section. Let me fix it myselfThe script that is discussed in this section opens the firewall ports for SQL Server.
To create the script, follow these steps:
Before you run the OpenSqlServerPort.bat script, you must copy the script to the computer which has the firewall and then run the script on that computer. To run the script, follow these steps:
Did this fix the problem?Check whether the problem is fixed by trying to access the instance of SQL Server from another computer. If the problem is fixed, you are finished with this article. If the problem is not fixed, you can contact support
(http://support.microsoft.com/contactus)
. APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
