Article ID: 914277 - View products that this article applies to.
Expand all | Collapse all

INTRODUCTION

When you try to connect to an instance of Microsoft SQL Server 2005 from a remote computer, you might receive an error message. This problem might occur when you use any program to connect to SQL Server.

For example, you receive the following error message when you use the SQLCMD utility to connect to SQL Server:
Sqlcmd: Error: Microsoft SQL Native Client: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.


This problem might occur when SQL Server 2005 is not configured to accept remote connections. By default, SQL Server 2005 Express Edition and SQL Server 2005 Developer Edition do not allow remote connections.

To configure SQL Server 2005 to allow remote connections, you must complete these steps:
  • Enable remote connections on the instance of SQL Server that you want to connect to from a remote computer.
  • Turn on the SQL Server Browser service.
  • Configure the firewall to allow network traffic that is related to SQL Server and to the SQL Server Browser service.
This article describes how to complete each of these steps.

More information

To enable remote connections on the instance of SQL Server 2005 and to turn on the SQL Server Browser service, use the SQL Server 2005 Surface Area Configuration tool. The Surface Area Configuration tool is installed when you install SQL Server 2005.
Enable remote connections for SQL Server 2005 Express or SQL Server 2005 Developer Edition

Enable the SQL Server Browser service

Create exceptions in Windows Firewall

Properties

Article ID: 914277 - Last Review: July 12, 2013 - Revision: 10.1
Applies to
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Express Edition
Keywords: 
kbsqlsetup kbhowto kbtshoot kbinfo KB914277

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com