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

Creating Database

PDF
Focus Mode
Font Size
Last updated: 2025-08-07 17:23:45

Overview

TencentDB for SQL Server allows you to create databases on the Database Management page in the console and authorize accounts for database access.

Maximum number of databases created in a single instance

Note:
If the instance only has one CPU core, we recommend that you keep the database limit at 70 to guarantee instance stability.
The maximum number of databases that can be created for instances of different specifications is related to the value of the max worker threads parameter. If the parameter uses the default value of 0, the maximum number of databases that can be created for instances of different versions and specifications is 80. If the value of this parameter is set to 20000 or higher, the maximum number of databases that can be created for instances of different versions and specifications is related to the number of CPU cores of an instance. You can refer to the calculation formula below. For information on how to set the parameters, see Setting Instance Parameters.
SQL Server 2008 R2 Enterprise instances don't support lifting the database quantity limit, which is 70. The limit in other SQL Server instances is subject to the number of instance CPU cores as calculated below:
Multi-node
2017 Enterprise
2019 Enterprise
2022 Enterprise
The maximum number of databases is related to the instance CPUs. For instances with 4 or fewer CPU cores, the maximum number of databases is 80. For instances with 8 or more CPU cores, the maximum number of databases is 100.
Dual-Node (Formerly High-Availability Edition) 2012 Standard/Enterprise 2014 Standard/Enterprise 2016 Standard/Enterprise Maximum number of databases:

Extract the square root of the CPU core quantity, round it to one decimal place, multiply the result by 40, and add the product to 80 to get the value X. The smaller value between X and 300 is the maximum number of databases. For example, you can create up to 160 databases in a 4-core 16 GB MEM SQL Server 2014 Enterprise instance.
Dual-Node (Formerly Cluster Edition) 2017 Enterprise 2019 Enterprise
2022 Enterprise
The maximum number of databases is related to the instance CPU. The maximum number of databases for instances with 8-core CPU or less is 80, and the maximum number of databases for instances with 8-core CPU or above is 100.
Single Node (Formerly Basic Edition) 2008 R2 Enterprise 2012 Enterprise 2014 Enterprise 2016 Enterprise 2017 Enterprise 2019 Enterprise
2022 Enterprise Maximum number of databases:

Extract the square root of the CPU core quantity, round it down to the nearest integer, and multiply the result by 100 to get the value N. The smaller value between N and 400 is the maximum number of databases. For example, you can create up to 200 databases in a 4-core 16 GB MEM SQL Server 2017 Enterprise instance.
Table of instance CPU core quantity and corresponding maximum database quantity
Maximum number of databases in Basic Edition
Maximum number of databases in Dual-Server High Availability/Cluster Edition
Maximum number of databases in multi-node edition
Number of CPU Cores
Single-Node 2008 R2 Enterprise Edition
Single-Node 2012/2014/2016/2017/2019/2022 Enterprise Edition
2
80
100
4
80
200
8
80
200
12
80
300
16
80
400
24
80
400
32
80
400
48
80
400
64
80
400
CPU Cores
Dual-Node 2008 R2/2012/2014/2016 Enterprise Edition
Dual-node 2017/2019/2022 Enterprise Edition
1
70
80
2
136
80
4
160
80
8
193
100
12
218
100
16
240
100
24
275
100
32
300
100
48
300
100
64
300
100
96
300
100
Number of CPU Cores
Multi-node 2017/2019/2022 Enterprise
2
80
4
80
8
100
12
100
16
100
24
100
32
100
48
100
64
100
96
100

Directions

1. Log in to the TencentDB for SQL Server console 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 Database Management tab, click Create Database, set configuration items in the pop-up window, confirm that everything is correct, and click OK.

Database Name: It can contain up to 64 letters, digits, and underscores and must start with a letter.
Supported Character Set: Select the character set to be used by the database. Currently, most native character sets are supported.
Authorize Account: You can authorize existing accounts to access the database. If you haven't created an account yet, see Creating Account.
Remarks: It can contain up to 256 characters.

Related APIs

API
Description
CreateDB
This API is used to create a database.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback