All Products
Search
Document Center

ApsaraDB RDS:Manage users

Last Updated:Mar 25, 2024

This topic describes how to use SQL statements to create and manage users on an ApsaraDB RDS for SQL Server instance.

Note

You can create users only in the databases that you created. You cannot create users in system databases.

Prerequisites

Create a user

Execute the following statements to create a user in the TestDB database:

USE TestDB
GO
CREATE USER [Test] FOR LOGIN [Test]

Modify the user information

Execute the following statements to modify user information. The process is similar to the process in SQL Server.

USE TestDB
GO
ALTER USER test WITH LOGIN=test

Delete a user

Execute the following statements to delete a user. The process is similar to the process in SQL Server.

USE TestDB
GO
DROP USER test