Add an ApsaraDB RDS for SQL Server data source

更新时间:
复制 MD 格式

This topic describes how to add an ApsaraDB RDS for SQL Server data source to DataV over a private network and the public network.

Prerequisites

You have created an ApsaraDB RDS for SQL Server data source.

Add a data source over a private network

  1. Log on to the DataV console.

  2. On the My Data tab, select Data Source Management and click Add Data.

  3. From the Type list, select ApsaraDB RDS for SQL Server.
  4. Select Private Network and then select the region where the RDS instance is located.
  5. Select a network type for the private network connection. The options are Virtual Private Cloud and Classic Network.
    • Virtual Private Cloud
      1. Turn on the VPC switch to enable the Virtual Private Cloud mode.
      2. Enter the database information.添加RDS for SQLServer数据源(内网)专有网络
        ParameterDescription
        NameThe display name of the data source. You can enter any name.
        VPC IDThe ID of the VPC instance. This is the VPC where your ApsaraDB RDS for SQL Server instance is located. You can obtain the ID from the Network TypeBasic InformationInstance List page in the ApsaraDB RDS console获取VPC ID
        Instance IDThe ID of the database instance in the VPC. You can obtain the ID from the instance's basic information page in the ApsaraDB RDS console.
        Note You can typically find the VPC instance ID in the console of the database product. However, the instance ID displayed in the console may not always be the one required for the DataV data source configuration. If the connection fails, you must use the database product's OpenAPI to get the correct VPC instance ID. This ID is usually the `VpcCloudInstanceId` or `VpcInstanceId` found in the database instance details. For more information about the API operation to query instance details, see DescribeDBInstanceAttribute - Query instance details.
        SQL Server VersionOptional. Select this option if you use a version of SQL Server earlier than 2012.
        Domain NameThe endpoint used to connect to the database.
        Important This endpoint is not a website URL or a native IP address. It is the endpoint that the DataV server uses to access your database over the public network or a private network in some Alibaba Cloud regions.

        For example, if you use an ApsaraDB RDS for SQL Server instance over a private network, the domain name is similar to `rm-bpxxxxxxxxx33150.sqlserver.rds.aliyuncs.com`. You can obtain it from the instance's basic information page in the ApsaraDB RDS console.

        PortThe port that the database uses.
        UsernameThe username used to log on to the database.
        PasswordThe password used to log on to the database.
        DatabaseThe name of the database.
        encryptIf you turn on this switch, the data source is compatible with Microsoft Azure SQL Database.
      3. After you enter the database information, the system automatically tests the connection to verify that the database is accessible.
    • Classic Network
      1. Turn off the VPC switch to enable the Classic Network mode.
      2. Enter the database information.添加RDS for SQLServer数据源(内网)经典网络
        ParameterDescription
        NameThe display name of the data source. You can enter any name.
        SQL Server VersionOptional. Select this option if you use a version of SQL Server earlier than 2012.
        Domain NameThe endpoint used to connect to the database.
        Important This endpoint is not a website URL or a native IP address. It is the endpoint that the DataV server uses to access your database over the public network or a private network in some Alibaba Cloud regions.

        For example, if you use an ApsaraDB RDS for SQL Server instance over a private network, the domain name is similar to `rm-bpxxxxxxxxx33150.sqlserver.rds.aliyuncs.com`. You can obtain it from the instance's basic information page in the ApsaraDB RDS console.

        PortThe port that the database uses.
        UsernameThe username used to log on to the database.
        PasswordThe password used to log on to the database.
        DatabaseThe name of the database.
        encryptIf you turn on this switch, the data source is compatible with Microsoft Azure SQL Database.
      3. After you enter the database information, the system automatically tests the connection to verify that the database is accessible.
  6. After the connection test is successful, click OK to add the data source.

    The new data source appears in the data source list.

Add a data source over the public network

  1. Log on to the DataV console.

  2. On the My Data tab, select Data Source Management and click Add Data.

  3. From the Type list, select ApsaraDB RDS for SQL Server.
  4. Select Public Network as the network type.

    For more information about how to set a public endpoint, see Set connection endpoints.

  5. Enter the database information.
    添加RDS for SQLServer数据源(外网)
    ParameterDescription
    NameThe name of the data source. You can specify a custom name.
    SQL Server VersionOptional. Select this option if you use a version of SQL Server earlier than 2012.
    Domain NameThe endpoint used to connect to the database.
    Important This endpoint is not a website URL or a native IP address. It is the endpoint that the DataV server uses to access your database over the public network or a private network in some Alibaba Cloud regions.

    For example, if you use an ApsaraDB RDS for SQL Server instance over the public network, the domain name is similar to `rm-bpxxxxxxxxxxxxdo.sqlserver.rds.aliyuncs.com`. You can obtain it from the instance's basic information page in the ApsaraDB RDS console.

    PortThe port that the database uses.
    UsernameThe username used to log on to the database.
    PasswordThe password used to log on to the database.
    DatabaseThe name of the selected database.
    encryptIf you turn on this switch, the data source is compatible with Microsoft Azure SQL Database.

    After you enter the database information, the system automatically tests the connection to verify that the database is accessible.

  6. After the connection test is successful, click OK to add the data source.

    The new data source appears in the data source list.