내용으로 건너뛰기

Assistance Required for Assigning sysadmin Rights on AWS RDS (MSSQL)

0

Hi Support,

We have recently created an AWS RDS instance with Microsoft SQL Server, and we need to assign sysadmin privileges to our database user. This level of access is explicitly required by our application running on an EC2 instance, as it is currently unable to access any tables on the RDS instance.

Could you please advise on how we can grant sysadmin rights to our database user on RDS for SQL Server?

Looking forward to your guidance.

Best regards, Malik Adeel Imtiaz

3개 답변
1

Hi,

According to the AWS documentation, sysadmin server-level role is not available in Amazon RDS for SQL Server. You might need to explore alternative approaches, such as hosting it on an EC2 instance, if that level of access is explicitly required. Enter image description here

전문가

답변함 일 년 전

0

In Amazon RDS for SQL Server, you cannot assign the sysadmin role to any database user — not even the mast** user. This is a managed service limitation imposed by AWS to protect the underlying infrastructure and ensure stability. You can grant elevated privileges using the RDS mast** user, which comes with many permissions excluding restricted server-level roles. Here’s how you can work around it:

  1. Use the mast** user for administration The mast** user can: Create and manage databases Create logins and users Grant many high-level privileges (but not sysadmin)

  2. Create a new user and grant needed roles Connect as the RDS mast** user and run: USE [your_database_name]; CREATE USER your_user_name FOR LOGIN your_login_name; EXEC sp_addrolemember 'db_owner', 'your_user_name'; The db_owner role provides full control over all objects in the database.

  3. Grant additional explicit permissions If your application requires specific rights (e.g., to run EXECUTE on stored procedures, or access specific tables), grant those directly: GRANT EXECUTE ON SCHEMA::dbo TO your_user_name; GRANT SELECT, INSERT, UPDATE, DELETE ON [your_table_name] TO your_user_name; Alternative Solutions Use AWS Systems Manager or EC2 with full SQL Server installation:If your application absolutely must have sysadmin access, consider using SQL Server on EC2 where you control the OS and SQL Server instance. In rare edge cases, AWS may be able to suggest a workaround if a specific system-level configuration is needed.https://aws.amazon.com/premiumsupport/

답변함 일 년 전

0

Thank you so very much for your reply, can you please help me to confirm if we need to give sysadmin role in RDS case, then what will be the next solution?

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠