Updated on 2024-09-30 GMT+08:00

Connecting to a DB Instance from a Windows Server

You can connect to your DB instance from a local Windows server installed with SQL Server Management Studio over a public network.

This section describes how to connect to a DB instance with SSL disabled. To connect to a DB instance with SSL enabled, see Connecting to an Instance Through a Public Network.

Step 1: Test Connectivity and Install SQL Server Management Studio

  1. On the Instances page of the RDS console, click the DB instance name to go to the Overview page.
  2. Obtain the EIP and database port of the DB instance.
    Figure 1 Connection information

    If no EIP has been bound to the DB instance, see Binding an EIP.

  3. Open the cmd window on your local server and check whether the EIP and database port of the DB instance can be connected.

    telnet EIP 1433

    • If yes, network connectivity is normal.
    • If no, check the security group rules.

      Check inbound rules in the security group of the DB instance. Add an inbound rule for the EIP and port of the DB instance. For details, see Configuring Security Group Rules.

  4. Open a browser on the local server, visit the Microsoft website, and download the installation package, for example, SQL Server Management Studio 18.0.
  5. Double-click the installation package and complete the installation as instructed.

Step 2: Connect to the DB Instance Using SQL Server Management Studio

  1. Start SQL Server Management Studio.
  2. Choose Connect > Database Engine. In the displayed dialog box, enter login information.
    Figure 2 Connecting to the server
    Table 1 Parameter description

    Parameter

    Description

    Server name

    EIP and database port obtained in 2.

    Authentication

    Authentication mode. Select SQL Server Authentication.

    Login

    Name of the account used to access the DB instance. The default value is rdsuser.

    Password

    Password of the account.

  3. Click Connect to connect to the DB instance.

Follow-up Operations

After logging in to the DB instance, you can create or migrate databases.