Compartir a través de


How to: Enable Remote Connections on SQL Server

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

To enable Microsoft code name “Quadrant” to connect to data on a remote computer, you must also configure the remote computer to accept requests from “Quadrant”. The following steps give a quick guide to setting up the remote computer.

Grant User Access

To allow access to users in a Windows domain

  1. Open the SQL Server Management Tool.

  2. Log on to the instance of SQL Server. This step presumes that you are the administrator of the computer and the instance of SQL Server.

  3. In Object Explorer, expand the Security node.

  4. Right-click Logins and click New Login....

  5. Type the name of the user to allow by using the domain\username format.

  6. Click Search and use the dialog to confirm that the user is a Windows authenticated user. Then close the New Login dialog.

  7. In Object Explorer, expand the Databases node.

  8. Expand the node of the database that you want to grant access to.

  9. Expand the Security node of the database.

  10. Right-click the Users node and click New User.

  11. In the User name box, type in a name for the user.

  12. In the Login name box, type the name of the user by using the domain\username format.

  13. In the Role Members list box, select the role that you want to grant the user for the database. Common options are db_dataread and db_datawriter.

Enable a Port

This is a one-time procedure that you perform on the computer that hosts the instance of SQL Server to allow access to the computer through a specific port. The default port set by SQL Server is 1433. If you change the default, follow the directions below and change the port number as appropriate.

To enable port 1433 on Windows Vista

  1. On the Start menu, click Control Panel.

  2. Under Security, select Allow a program through Windows Firewall.

  3. If prompted, click Continue. This presumes you are the administrator of the computer.

  4. In the Windows Firewall Settings dialog, click Add Port.

  5. In the Name box, type a name, such as SQL Server Port.

  6. In the Port number box, type 1433. Use the default protocol TCP.

  7. Click OK.

To enable port 1433 on Windows 7

  1. On the Start menu, click Control Panel.

  2. Click System and Security.

  3. Click Windows Firewall.

  4. Click Advanced Settings.

  5. In the Windows Firewall with Advanced Security on Local Computer dialog, click Inbound Rules.

  6. In the Actions panel, click New Rule….

  7. In the New Inbound Rule Wizard, click Port, and then click Next.

  8. In the Specific local ports: box type 1433. Ensure that the (default) TCP radio button is selected and then click Next.

  9. Ensure that the (default) Allow the Connection radio button is selected and then click Next.

  10. Clear or select the Domain, Private, and Public checkboxes as appropriate, and then click Next.

  11. In the Name box, type an appropriate name, such as SQL Server Port, and then click Finish.

Set a Protocol

This is also a one-time procedure that you perform on the computer that hosts the instance of SQL Server to indicate which protocol to use when communicating with remote clients. This procedure uses the TCP/IP protocol.

To set the protocol

  1. Open the SQL Server Configuration Manager application. This is found in the Configuration Tools folder of the Microsoft SQL Server 2008 folder.

  2. Expand the SQL Server Network Configuration Manager node.

  3. Expand the SQL Server Network Configuration node.

  4. Click Protocols for MSSQLSERVER.

  5. Right-click TCP/IP and click Enable.

    After setting the protocol you must restart the SQL Server service.

To restart the SQL Server service

  1. In the SQL Server Configuration Manager application, click the SQL Server Services node.

  2. Right-click SQL Server (MSSQLSERVER) and click Restart.

See Also

Tasks

How to: Connect to a SQL Server Database with "Quadrant"