tencent cloud

TencentDB for SQL Server

Release Notes and Announcements
Release Notes
Product Announcements
User Guide
Product Introduction
Overview
Product Architecture
Strengths
Use Cases
Regions and AZs
Major Version Lifecycle Explanation
Features and Differences
Instance Types
Instance Specifications
Storage Types
Common Concepts
Network Environment
License Statement
Purchase Guide
Billing Overview
Product Pricing
Purchase Methods
Renewal Instructions
Payment Overdue
Refund
From Pay-as-You-Go to Monthly Subscription
Instance Adjustment Fees Description
Local Backup Space Billing
Cross-Region Backup Billing
Viewing Bill Details
Getting Started
Creating TencentDB for SQL Server Instance
Connecting to TencentDB for SQL Server Instance
Managing TencentDB for SQL Server Instance
Operation Guide
Constraints and Limits
Usage Specifications and Suggestions
Maintaining Instance
Adjusting Instance Configuration
Read-Only Instance
Network and Security
Account Management
Database Management
Data Security
Parameter Configuration
Monitoring and Alarms
Backup and Restoration 
Log Management
Publish-Subscribe
SSIS
Data Migration (New)
Data Migration (Legacy)
Data Synchronization (DTS) 
Practical Tutorial
TencentDB for SQL Server Methods for Regular Maintenance
TencentDB for SQL Server Optimization of Slow SQL
How to Better Use Tempdb
Cross-Account Backup Restoration
Creating VPC for TencentDB for SQL Server
Connecting Kingdee K/3 WISE to TencentDB for SQL Server
Account Permissions and Permission Control
Enabling and Disabling the CDC Feature
Shrinking a Database
API Documentation
History
Introduction
API Category
Making API Requests
Sales and fee related APIs
Instance Management related APIs
Operation and maintenance management related APIs
Network management related APIs
Account management related APIs
Database management related APIs
Security group management related APIs
Data security encryption related APIs
Parameter configuration related APIs
Extended Event related APIs
Log management related APIs
Read only instance management related APIs
Publish and subscribe related APIs
Backup related APIs
Rollback related APIs
Data migration (cold standby migration) related APIs
SQL Server Integration Services (SSIS) related APIs
Data migration (DTS old version) related APIs
Data Types
Error Codes
FAQs
Overview
Model Selection
Pricing and Selection
Connection and Network
Account and Permission
Backup and Rollback
Data Migration
Publish/Subscribe
Read-Only Instance
Version and Architecture Upgrade
Disk Space and Specification Adjustment
Monitoring and Alarms
Log-Related
Parameter Modification
Features
Performance, Space, and Memory-Related FAQs
Service Agreement
Service Level Agreement
Terms of Service
Performance Evaluation
Performance Test Report
Glossary
Contact Us

Enabling Public Network Access Through CLB

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-05-24 21:35:42
TencentDB for SQL Server supports both private and public network addresses, with the former enabled by default for you to access your instance over the private network and the latter enabled or disabled as needed. To access your database instance from a Linux or Windows CVM instance over the public network, you can enable the public network address. You can also enable public network access through CLB, but you must configure security group rules in this case.
This document describes how to bind a TencentDB for SQL Server instance to CLB to enable public network access, connect to the instance through SQL Server Management Studio (SSMS), and run a simple query.

Prerequisites

You have applied to use the real server feature. Currently, this feature is in beta testing. To experience this feature, submit a ticket for application.
Note:
Enabling the public network services through CLB is exclusively applicable when the CLB instances and the SQL Server instances belong to the same VPC network. It is currently not supported for instances across different VPC networks.

Step 1. Purchase a CLB instance

Note:
If you already have a CLB instance in the same region as TencentDB for SQL Server, skip this step.
Go to the CLB purchase page, select the configuration, and click Buy Now.
Note:
Region: You need to select the region where the TencentDB for SQL Server instance is.

Step 2. Configure the CLB instance

The following describes how to configure the CLB instance in the same VPC as the database instance and in a different VPC respectively.

Scenario: Deploying the CLB instance in the same VPC as the TencentDB for SQL Server instance

1. Enable cross-VPC access so that the CLB instance can be bound to another private IP. a. Log in to the CLB console, select the region, and click the target instance ID in the instance list to enter the instance management page. b. On the Basic Info page, click Configure in the Real Server section. c. In the pop-up window, click Submit.
2. Configure a public network listener port. a. Log in to the CLB console, select the region, and click the target instance ID in the instance list to enter the instance management page. b. On the instance management page, select the Listener Management tab and click Create below TCP/UDP/TCP SSL Listener. c. In the pop-up window, complete the settings and click Submit.

Step 3. Bind a TencentDB for SQL Server instance

1. After creating the listener, click it in Listener Management and click Bind on the right.
2. In the pop-up window, select Other Private IPs as the object type, enter the IP address and port of the TencentDB for SQL Server instance, and click OK.
Note:
The login account must be a standard account (bill-by-IP). If binding fails, submit a ticket for assistance.

Step 4. Configure the TencentDB for SQL Server security group

1. Log in to the TencentDB for SQL Server console, select a region, and click the ID of the target instance in the instance list or Manage in the Operation column to enter the instance management page.
2. On the instance management page, select the Security Group tab, click Configure Security Group, configure the security group rule to open all ports, and confirm that the security group allows access from public IPs. For more information on configuration, see Configuring Security Group.

Step 5. Connect to the TencentDB for SQL Server instance over the public network

1. Download and install SSMS locally. For more information on SSMS, see What is SQL Server Management Studio (SSMS)?
2. Start SSMS locally. On the Connect to Server page, enter the relevant information to connect to TencentDB. Click Connect and wait a few minutes before SSMS connects to your database instance.


Server type: Select Database Engine.
Server name: Enter the local IP address and port number of the CLB instance and separate them by a comma, such as 10.0.0.1,4000.
Authentication: Select SQL Server Authentication.
Login and Password: Enter the account name and password you configured when creating the instance account on the Account Management tab.
3. Once connected to the database, you can view the standard built-in system databases (master, model, msdb and tempdb) of SQL Server.

4. Now you can start creating your own databases and running queries for them. Select File > New > Query with Current Connection and type the following SQL query:
select @@VERSION
Run the query. SSMS returns the SQL Server version of TencentDB instance.


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백