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
ドキュメントTencentDB for SQL ServerGetting Started Connecting to TencentDB for SQL Server InstanceConnecting to TencentDB for SQL Server Instance from Windows CVM Instance

Connecting to TencentDB for SQL Server Instance from Windows CVM Instance

PDF
フォーカスモード
フォントサイズ
最終更新日: 2024-11-12 16:28:36

Overview

This document describes how to connect to a TencentDB for SQL Server instance through SQL Server Management Studio (SSMS) on a Windows CVM instance and run a simple query.
Note:
The CVM and TencentDB instances are better to be under the same account and in the same VPC in the same region.
CVM and TencentDB instances in the same VPC in different AZs in the same region can directly interconnect through private IPs.
CVM and TencentDB instances in different regions or VPCs or under different accounts can interconnect through Peering Connection or CCN.

Directions

1. Log in to the TencentDB for SQL Server console, click the instance ID of the target instance to enter the instance management page.
2. Based on the actual connection needs, you can view the private IP and port number of the instance at the top of the instance management page, in the instance information on the right side of the Instance Details page, or in the topology diagram. The specific scenarios are as follows.
If the current instance is a two-node instance, you can view the private IP and port number of the primary node at the top. By hovering the mouse over the corresponding area in the topology diagram, you can view the private IP and port number of the corresponding node. In the instance information on the right side, you can view the private IP and port number of the primary node, replica node (if the replica node read-only feature is enabled), and read-only instances (if any).

If the current instance is a single-node instance, you can view the private IP and port number of the primary node at the top, by hovering the mouse over the primary node read-write address in the topology diagram, or in the instance information on the right side.

If the current instance is a read-only instance, you cannot view the private IP and port number of the read-only instance in the topology diagram, but can view them at the top or in the instance information on the right side.
3. Log in to the Windows CVM instance. For more information, see Customizing Windows CVM Configurations. This document uses Windows Server 2012 R2 Standard Edition (64-bit) as an example.
4. Download and install SQL Server Management Studio (SSMS) on the Windows CVM instance. For more information on SSMS, see What is SQL Server Management Studio (SSMS)?
5. Start SSMS in the Windows CVM instance. 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 private IP and port number of the instance and separate them by comma. For example, if the private IP of the instance is 10.10.10.10 and the port number is 1433, then enter 10.10.10.10,1433 here.
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 page.

6. Once connected to the database, you can view the standard built-in system databases (master, model, msdb and tempdb) of SQL Server.


7. 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 TencentDB for SQL Server instance.



ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック