Setup Sysadmin role in RDS SQL Server

0

Hi there

I have added the master account while creating the RDS Microsoft SQL Server with Dev/Test option. However I need an account with Sysadmin role. Could you please guide me how can I add/create a new user with Sysadmin role? Do I need to create a different type type of RDS SQL Server? Thanks in advanve.

Best Musharrif

質問済み 1年前3358ビュー
1回答
1

the 'sysadmin' role itself is reserved for the 'rdsa' internal SQL Server account, which is managed by the Amazon RDS service and not accessible to users.

you can create a new user and assign db_owner role

CREATE LOGIN [NewUserName] WITH PASSWORD = 'NewUserPassword';
GO

USE [YourDatabaseName];
GO

CREATE USER [NewUserName] FOR LOGIN [NewUserName];
GO

EXEC sp_addrolemember 'db_owner', 'NewUserName';
GO

profile picture
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ