Saturday, November 5, 2011

Remote Connection Setup of SQL Server 2005 Express or SQL Server 2005 Database


Microsoft SQL Server 2005 or Microsoft SQL Server 2005 Express does not allow remote access by default. If you want to remote connect or use another computer in your LAN or network, you must configure on your SQL Server 2005 or the SQL Server 2005 Express.
If you don’t change the settings of the SQL server for remote connection, you may receive an error message.
Sqlcmd: Error: Microsoft SQL Native Client: An error has occurred while establishing a connection to the server. When connecting to SQL Server2005, this failure may be caused by the fact that under the defaultsettings SQL Server does not allow
Enable remote connections for SQL Server 2005 Express or SQL Server 2005 Developer Edition
To enable remote connections on the instance of SQL Server 2005 Express, please follow the steps below.
1. Locate your Microsoft SQL Server 2005 program on the Start menu on your computer, point toConfiguration Tools, and then you will see the menu item SQL Server Surface Area Configuration(please check image below)
2. Click SQL Server Surface Area Configuration, and then click Surface Area Configuration for Services and Connections.
3. In Database Engine menu, please select the Remote connections and by default the SQL Server 2005 connection type is Local Connections only, please select the Local and Remote connections and selectUsing both TCP/IP and Name Pipes. Based on my experience, It’s better to use both TCP/IP and Name Pipes as you can see the image below because during the configuration of your ODBC you can use these type TCP/IP or Name Pipes to connect the SQL Server 2005 database.
4. Please Click to confirm the database setting changes.
5. Return to the Surface Area Configuration for Services and Connections page, expand Database Engine, select Service, On the right side, click Stop button, then wait until the MSSQLSERVER (MSSQL$SQLEXPRESS2005) service stops, and then click Start button to restart the MSSQLSERVER (MSSQL$SQLEXPRESS2005) service.

No comments:

Post a Comment