After you create an ApsaraDB RDS for SQL Server instance, you must create databases on the instance for your applications. This topic describes how to create a database and plan the number of databases to meet your business requirements.
Prerequisites
An ApsaraDB RDS for SQL Server instance is created. For instructions, see Create an ApsaraDB RDS for SQL Server instance.
Database limits
The maximum number of databases for an instance that runs SQL Server 2008 R2 is 50. For other SQL Server versions, the maximum number of databases depends on the instance specifications. The limit is calculated based on the following formulas:
-
Cluster Edition / High-availability Edition

The maximum number of databases is the minimum of 300 and the value obtained by taking the square root of the number of CPU cores, rounding the result down to the nearest integer, and then multiplying it by 50. For example, a 2016 Standard High-availability Edition (4-core 8 GB) instance supports a maximum of 100 databases.
-
Basic Edition

A base value is calculated by taking the square root of the number of CPU cores, rounding down to the nearest integer, and then multiplying the result by 100. The maximum number of databases is the minimum of this base value and 400. For example, a 2019 Standard Basic Edition (4-core 8 GB) instance supports a maximum of 200 databases.
The min function returns the smallest value in a set of numbers. For example, min(100, 300) returns 100.
Create a database
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the left-side navigation pane, click Databases.
Click Create Database, configure the following parameters, and then click Create.
Parameter
Description
Database Name
Enter a name for the database. The name must be 2 to 64 characters in length, start with a letter, and end with a letter or digit. It can contain uppercase letters, lowercase letters, digits, underscores (_), and hyphens (-). Chinese characters are not supported.
Supported Character Set
Select a character set for the database.
Description
Enter a description for the database. The description can be up to 256 characters in length.
Related operations
You can also call the CreateDatabase API operation to create a database on an ApsaraDB RDS for SQL Server instance.
You can use various methods to connect to your SQL Server instance, such as Data Management (DMS) or a SQL Server Management Studio (SSMS) client.







