edit-icon download-icon

Connect to an instance

Last Updated: Apr 01, 2018

You can connect to an RDS instance through the SQL Server client. This document introduces the connection procedure by taking the Microsoft SQL Server Management Studio (SSMS) client as an example.

Background information

Because RDS for SQL Server is fully compatible with SQL Server, the same method may be used to connect to the database. Here, we take the SSMS client as an example to connect to an RDS instance. You can see this method when using other clients. When you connect to an RDS instance through clients, consider the following information on the selection of the connection address.

  • Use the intranet address when your client is installed on the ECS that is located in the same region and the same network type with those of the RDS instance to be connected.

  • Use the Internet address for the other situations.

Procedure

  1. Add the IP address accessing the RDS instance to RDS whitelist. For more information, see Set whitelist.

  2. Start the Microsoft SQL Server Management Studio client.

  3. Enter the connection information, as shown in the following figure.

    Parameters description:

    • Server type: select Database Engine.

    • Server name: consists of the Internet/intranet address and the corresponding port number of the RDS instance. The connection address and the port number must be separated by a comma, for example, rm-bptest.sqlserver.rds.aliyuncs.com,3433. Do the following steps to view the connection address and the port information of the RDS instance.

      1. Log on to the RDS console.

      2. Select the region where the target instance is located.

      3. Click the ID of the instance to visit the Basic Information page.

      4. In the Basic Information area, you can find the Internet/intranet address and Internet/intranet port number of the instance, as shown in the following figure.

        View the basic information of the instance

    • Authentication: select SQL Server Authentication.

    • Login: refers to the initial account name of the RDS instance.

    • Password: refers to the password corresponding to the initial account of the RDS instance.

  4. Click Connect.

Thank you! We've received your feedback.