tencent cloud

Creating Database
Last updated:2025-08-07 17:23:45
Creating Database
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.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback