Remotely connecting to SQL Server 2005/2008 Express
From WebWatchBotWiki
SUMMARY
Configure a server running SQL Server 2005/2008 Express to accept connections from a remote client.
RESOLUTION
On the WebWatchBot Server:
- Ensure that the SQL Browser service is set to start "Automatically" and is running - this will broadcast and make SQL Server available to the network.
- Ensure "Mixed Mode" authentication is enabled. Open SQL Server Management Studio (SSMS):
- Start menu
- All Programs
- Microsoft SQL Server 2005/2008
- SQL Server Management Studio
- Right-click on the machine name in the Object explorer: MACHINNAME (SQL Server 9.x...)
- Select "Server Properties"
- Under the security section, ensure that SQL Server and Windows Authentication mode is selected.
- Open the SQL Server Configuration Manager:
- Start menu
- All Programs
- Microsoft SQL Server 2005/2008
- Configuration Tools
- SQL Server Configuration Manager
- A new window will open
- On the left-hand pane, expand the node for SQL Server 2005/2008 Network Configuration
- Select “Protocols for SQL Express”
- On the right-hand pane, double-click “TCP/IP”, change the value for “Enabled” to “Yes”.
- Click OK
- You will receive a notice that the service needs to be restarted. Click OK
- On the left-hand pane, select “SQL Server 2005 Services”
- On the right-hand pane, select “SQL Server (Express)”
- On the tool bar click the “Restart Service” button (looks like a curved arrow) and the service will restart
- Ping the WebWatchBot server from the remote client to ensure you can reach that server.
On the remote client, test the connection with the following:
- Start menu
- Control Panel
- Administrative Tools
- Data Sources (ODBC)
- Select the "SYSTEM DSN" tab
- Click the "Add" button
- Select "SQL Server"
- Enter a name (anything really), and for server enter "machinename\sqlexpress"
- Click Next
- Select "With SQL Server authentication..."
- Check the box for "Connect to SQL Server to obtain..."
- Enter the username and password for the SQL SErver instance.
- Click Next. At this point, if it cannot connect, you will receive an error message.