I want to copy a database using a build script to RDS. In one stored procedure there is a create assembly command. I cannot create this procedure because it says "Permission denied". I am admin, but I do not have 'sys_admin' rights, as it is not possible in RDS.
I created an AWS-RDS instance with SQL Server Enterprise version. I connected from my local MS SQL Management Studio. I run the create procedure script.
This is similar to the script I ran.
USE [master]
GO
CREATE DATABASE [xxx]
GO
ALTER DATABASE [xxx] SET COMPATIBILITY_LEVEL = 130
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [xxx].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
CREATE ASSEMBLY [xxx_clr]
FROM 0x4...
WITH PERMISSION_SET = SAFE
GO
-- error will appear here !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
CREATE PROCEDURE [pm].[xxx_SP]
@srcTblName [nvarchar](4000),
etc..
WITH EXECUTE AS CALLER
AS
EXTERNAL NAME [xxx_clr].[xxxCLR].[xxxMain]
GO
Is there a way to do a workaround to create an assembly on RDS?
USE
statement for your user database? – Dan Guzman