0

I have created a SQLCLR functions works with RabbitMQ. Added them to SQL Server as described here https://nielsberglund.com/2017/07/01/sqlclr-and-certificates/ using certificate: created it, added to database, created Login etc. It works fine. Can add my SQLCLR functions to AWS RDS SQL Server database using the same way? In particular SQL Server I do this way:

use master;
IF exists(select * from sys.syslogins where name = N''login21'') DROP LOGIN [login21];
IF exists(select * from sys.certificates where name = N''login21Cert21'')    DROP CERTIFICATE [login21Cert21];
CREATE CERTIFICATE [login21Cert21] FROM BINARY = 
0x30820....;
CREATE LOGIN [login21] FROM CERTIFICATE [login21Cert21];
GRANT UNSAFE ASSEMBLY TO [login21];

But the question is if it is possible to add certificate/login to AWS RDS SQLServer master database?

2
  • Have you tried? Commented Feb 6, 2022 at 13:05
  • No , I afraid :-) , just asked to be sure it is possible. I have no yet access to AWS Commented Feb 6, 2022 at 13:08

1 Answer 1

1

I did a quick google search (literally "RDS CLR") and the first page is a link to AWS' documentation which says:

Common Runtime Language (CLR). On RDS for SQL Server 2016 and lower versions, CLR is supported in SAFE mode and using assembly bits only. CLR isn't supported on RDS for SQL Server 2017 and higher versions. For more information, see Common Runtime Language Integration in the Microsoft documentation."

Also, regarding your comment of not trying it because you don't have access to AWS, everyone has access. To try out what you're proposing would take about five minutes on a personal account. I'd guess that it would cost less than $1 USD and certainly less than $10.

Sign up to request clarification or add additional context in comments.

2 Comments

Hi Ben, it is not so today. Please look at support.huaweicloud.com/intl/en-us/bestpractice-rds/…
Can you tell me how the articles that we've respectively cited contradict? If the example in the article that you cited was run against SQL 2016 or older it would work and should work according to the AWS docs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.